diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:03:13 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-04 10:03:13 -0800 |
commit | 5617394f71e3fe1deb67d011d1d1fcb67e95fb3a (patch) | |
tree | b8b68a836d6187f14d2aded1cbdbf0cefe7290db /contrib/completion/git-completion.bash | |
parent | Merge branch 'tb/t0050-maint' into maint (diff) | |
parent | git-completion.bash: replace zsh notation that breaks bash 3.X (diff) | |
download | tgif-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
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 14dd5e7ca2..468c96c4a2 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 |