summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-01-28 10:59:07 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-01-28 10:59:07 -0800
commit38f7636410a41769af36a5abfdf0f02f3542c6b1 (patch)
tree5da76c49108f216001eaf38ab437d33e5eca32ff /contrib
parentMerge branch 'for-junio' of git://bogomips.org/git-svn (diff)
parentgit-completion.bash: replace zsh notation that breaks bash 3.X (diff)
downloadtgif-38f7636410a41769af36a5abfdf0f02f3542c6b1.tar.xz
Merge branch 'bc/fix-array-syntax-for-3.0-in-completion-bash'
Fix use of an array notation that older versions of bash do not understand. * 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')
-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 7147d64af2..8c49ce2544 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2432,7 +2432,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