diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-29 15:43:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-29 15:43:16 -0700 |
commit | 9a95a9f230c30b44990e616dff154ab78f0aa60d (patch) | |
tree | 25dea6a42a2c75ef42efebb18a966ff10b700652 /contrib | |
parent | Merge branch 'mt/fix-add-rm-with-sparse-index' (diff) | |
parent | completion: fix incorrect bash/zsh string equality check (diff) | |
download | tgif-9a95a9f230c30b44990e616dff154ab78f0aa60d.tar.xz |
Merge branch 're/completion-fix-test-equality'
Fix long-standing shell syntax error in the completion script.
* re/completion-fix-test-equality:
completion: fix incorrect bash/zsh string equality check
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index eb5fd4783d..7c3a75373a 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 |