Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-4424

Create Branch should strip out invalid characters characters

XMLWordPrintable

      The Create Branch form should automatically strip out *all* invalid characters from the automatically generated branch name from a JIRA issue. Currently it only does some characters.

      For example, let's look at the following issue summary:

      Import new Objective Sets.

      It turns this into a branch name like:

      bugfix/SS-109-import-new-objective-sets.

      Notice the . on the end. This is an invalid character and the following error is thrown:

      'bugfix/SS-109-import-new-objective-sets.' is an invalid ref name

      Given the known limited character set for branch names, it should be easy to strip out everything else.

              Unassigned Unassigned
              900eb96a9778 Stephen Rees-Carter
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: