diff options
author | Brandon Casey <drafnel@gmail.com> | 2013-01-18 11:24:01 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-18 12:16:38 -0800 |
commit | 50c5885e0532bbe0d3fdd1632767e7cc6ae30442 (patch) | |
tree | 4cb35099ab3e0f83c7fcec2a663d016685576f40 /contrib | |
parent | e4f59a32de3f90ff5aabc09b9da6bd5818c5076b (diff) | |
download | git-50c5885e0532bbe0d3fdd1632767e7cc6ae30442.tar.gz git-50c5885e0532bbe0d3fdd1632767e7cc6ae30442.tar.xz |
git-completion.bash: replace zsh notation that breaks bash 3.X
When commit d8b45314 began separating the zsh completion from the bash
completion, it introduced a zsh completion "bridge" section into the bash
completion script for zsh users to use until they migrated to the zsh
script. The zsh '+=()' append-to-array notation prevents bash 3.00.15 on
CentOS 4.x from loading the completion script and breaks test 9902. We can
easily work around this by using standard Bash array notation.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-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 a4c48e179..2f9942005 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 |