From 617c574c177cea456a9c6094e6514176e2c8d1f0 Mon Sep 17 00:00:00 2001 From: "https://launchpad.net/~r0lf" Date: Tue, 20 Apr 2021 13:46:07 +0000 Subject: [PATCH] --- ..._choice_of_name_for_adjusted_branches.mdwn | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn diff --git a/doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn b/doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn new file mode 100644 index 0000000000..6172f3b084 --- /dev/null +++ b/doc/bugs/poor_choice_of_name_for_adjusted_branches.mdwn @@ -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.