diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-01-18 11:24:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-24 08:45:49 -0700 |
commit | e78095c3d05712b9479211bcc7faa1d8e9bf2723 (patch) | |
tree | f25b8eed25348e55c5764dd52b33da1b21b59d82 /contrib/completion | |
parent | Merge branch 'fc/zsh-leftover-bits' (diff) | |
download | tgif-e78095c3d05712b9479211bcc7faa1d8e9bf2723.tar.xz |
git-completion.bash: replace zsh notation that breaks bash 3.X
50c5885e (git-completion.bash: replace zsh notation that breaks bash
3.X, 2013-01-18) fixed a zsh-ism introduced earlier to append to an
array, which older versions of bash (3.0) did not grok. This was
again broken by 734b2f05 (completion: synchronize zsh wrapper,
2013-05-08).
Cherry-pick the fix again to let those with older bash use the
completion script.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-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 adeff8d9ba..67736c2a9c 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -2663,7 +2663,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 |