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
Родитель 68fb83b58e 46b0585286
Коммит 9a95a9f230
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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