This commit is contained in:
parent
38b9cf7747
commit
617c574c17
1 changed files with 24 additions and 0 deletions
24
doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn
Normal file
24
doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn
Normal file
|
@ -0,0 +1,24 @@
|
|||
### Please describe the problem.
|
||||
|
||||
The naming conventions for adjusted branches are poorly chosen (adjusted/master(unlocked) or adjusted/master(hidemissing)). The parentheses cause problems when checking out the branch without protecting the name by way of quotation marks. This problem is exacarbated that at least on my Ubuntu Focal system the provided bash-completion completes the branch name without those marks.
|
||||
|
||||
### What version of git-annex are you using? On what operating system?
|
||||
8.20200226-1 on Ubuntu Focal
|
||||
|
||||
### What steps will reproduce the problem?
|
||||
|
||||
git annex adjust --hide-missing
|
||||
git checkout master
|
||||
#git checkout adjTABusted/master(hidemissing)
|
||||
git checkout adjusted/master(hidemissing)
|
||||
|
||||
Result:
|
||||
|
||||
$ git checkout adjusted/master(hidemissing)
|
||||
bash: syntax error near unexpected token `('
|
||||
$ git checkout "adjusted/master(hidemissing)"
|
||||
Switched to branch 'adjusted/master(hidemissing)'
|
||||
|
||||
The problem is easy to fix, I think, by choosing a different naming convention. I'm not sure how to deal with legacy-named branches going forward, though.
|
||||
|
||||
Thank you very much for making git-annex available, much appreciated.
|
Loading…
Reference in a new issue