Message ID | pull.1096.v2.git.git.1635200973354.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 78decd16a02cd247f7f5278c95c976ed277fc25c |
Headers | show |
Series | [v2] completion: fix incorrect bash/zsh string equality check | expand |
"Robert Estelle via GitGitGadget" <gitgitgadget@gmail.com> writes: > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index 4bdd27ddc87..8ca9b15f21d 100644 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -515,7 +515,7 @@ __gitcomp_file () > # argument, and using the options specified in the second argument. > __git_ls_files_helper () > { > - if [ "$2" == "--committable" ]; then > + if [ "$2" = "--committable" ]; then > __git -C "$1" -c core.quotePath=false diff-index \ > --name-only --relative HEAD -- "${3//\\/\\\\}*" > else > > base-commit: 225bc32a989d7a22fa6addafd4ce7dcd04675dbf Thanks. We can trace this back to April 2013, if not earlier. It is sort of surprising that nobody else has noticed it since then X-<. Will queue. Thanks, again.
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 4bdd27ddc87..8ca9b15f21d 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -515,7 +515,7 @@ __gitcomp_file () # argument, and using the options specified in the second argument. __git_ls_files_helper () { - if [ "$2" == "--committable" ]; then + if [ "$2" = "--committable" ]; then __git -C "$1" -c core.quotePath=false diff-index \ --name-only --relative HEAD -- "${3//\\/\\\\}*" else