aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-04 10:03:13 -0800
committerJunio C Hamano <gitster@pobox.com>2013-02-04 10:03:13 -0800
commit5617394f71e3fe1deb67d011d1d1fcb67e95fb3a (patch)
treeb8b68a836d6187f14d2aded1cbdbf0cefe7290db
parente1b6ff44d61bcdd91280c3f7c3c5ace32d4b7c52 (diff)
parent50c5885e0532bbe0d3fdd1632767e7cc6ae30442 (diff)
downloadgit-5617394f71e3fe1deb67d011d1d1fcb67e95fb3a.tar.gz
git-5617394f71e3fe1deb67d011d1d1fcb67e95fb3a.tar.xz
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash' into maint
Command line completion code was inadvertently made incompatible with older versions of bash by using a newer array notation. * bc/fix-array-syntax-for-3.0-in-completion-bash: git-completion.bash: replace zsh notation that breaks bash 3.X
-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 14dd5e7ca..468c96c4a 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2431,7 +2431,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
--*=*|*.) ;;
*) c="$c " ;;
esac
- array+=("$c")
+ array[$#array+1]="$c"
done
compset -P '*[=:]'
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0