Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-30 01:43:16 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-30 01:43:16 +0300
commit9a95a9f230c30b44990e616dff154ab78f0aa60d (patch)
tree25dea6a42a2c75ef42efebb18a966ff10b700652 /contrib/completion/git-completion.bash
parent68fb83b58ed4ef8705974bc1cc47fb6bb7ca5bdd (diff)
parent46b05852863a532a897f09a8461586f3d2d38693 (diff)
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/completion/git-completion.bash')
-rw-r--r--contrib/completion/git-completion.bash2
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