1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-07 02:36:15 +02:00

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
This commit is contained in:
Junio C Hamano 2021-10-29 15:43:16 -07:00
commit 9a95a9f230

View File

@ -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