This commit is contained in:
https://launchpad.net/~r0lf 2021-04-20 13:46:07 +00:00 committed by admin
parent 38b9cf7747
commit 617c574c17

View 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.