Merge branch 'bc/completion-for-bash-3.0'
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2013 16:16:36 +0000 (09:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2013 16:16:37 +0000 (09:16 -0700)
* bc/completion-for-bash-3.0:
  git-completion.bash: replace zsh notation that breaks bash 3.X

contrib/completion/git-completion.bash

index cd509a5..32d1b45 100644 (file)
@@ -2581,7 +2581,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