Skip to content

Commit 9a95a9f

Browse files
committed
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
2 parents 68fb83b + 46b0585 commit 9a95a9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ __gitcomp_file ()
515515
# argument, and using the options specified in the second argument.
516516
__git_ls_files_helper ()
517517
{
518-
if [ "$2" == "--committable" ]; then
518+
if [ "$2" = "--committable" ]; then
519519
__git -C "$1" -c core.quotePath=false diff-index \
520520
--name-only --relative HEAD -- "${3//\\/\\\\}*"
521521
else

0 commit comments

Comments
 (0)