Closed ghost closed 4 years ago
The "\" character is not allowed in git branch names.
and merging back using a pull-request
Don't do that outside of Archi or you'll get problems.
thanks for the clarification on usage on PR's. i did a quick update of the original issue since GIT uses "/" to indicate hierarchical (directory) grouping. i hope that clarifies the usage of this request somewhat
~Unfortunately, we can't use the "/" character either. This is a limitation of JGit, the git library that we use. JGit checks the path name for "/":~
~I know that it is possible to add the forward slash in other git tools and the command line but JGit doesn't allow it.~
(Previous comment edited - I meant "/" character not backslash)
Thanks for clarifying, i think we can work with the limitation
Hold on - ignore what I said. You can use a "/" in the branch name, just not at the beginning or the end of the branch name. So, type in the name without the "/" character then move your cursor to where you want a "/" and type it.
I'll update the dialog box checking routine to allow you to type a "/" at the end of the branch name.
I've fixed the dialog box for entering a new branch name so that "." and "/" characters are allowed to be entered.
An error message is shown if these occur at the start or end of the branch name:
But you can still type in more characters to complete the name:
This will be in the next release.
awesome! can't wait to use it
can't wait to use it
As mentioned above, you already can:
Type in the name without the "/" character then move your cursor to where you want a "/" and type it.
when creating a new branch the collaboration UI does not allow for creating branchnames like features/abc or bugfix/def to represent hierarchical directory grouping. we follow the flow of branching from master and merging back using a pull-request similar to our code development. it would be great if the same restrictions were present on branchnames as are in GIT