diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-04-20 15:28:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-04-20 15:28:30 -0700 |
commit | 6b1258b07b8ad5671f36bf7e998e905a0142c223 (patch) | |
tree | 469cd8f19e72f6977f66324d55705ecd427b7821 /contrib/completion | |
parent | Merge tag 'gitgui-0.20.0' of http://repo.or.cz/r/git-gui (diff) | |
parent | completion: fix global bash variable leak on __gitcompappend (diff) | |
download | tgif-6b1258b07b8ad5671f36bf7e998e905a0142c223.tar.xz |
Merge branch 'ma/bash-completion-leaking-x'
The completion script (in contrib/) contaminated global namespace
and clobbered on a shell variable $x.
* ma/bash-completion-leaking-x:
completion: fix global bash variable leak on __gitcompappend
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 fbe597232c..5944c824ab 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -186,7 +186,7 @@ fi __gitcompappend () { - local i=${#COMPREPLY[@]} + local x i=${#COMPREPLY[@]} for x in $1; do if [[ "$x" == "$3"* ]]; then COMPREPLY[i++]="$2$x$4" |