diff options
author | Márcio Almada <marcio.web2@gmail.com> | 2015-04-08 02:45:58 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-04-12 22:35:51 -0700 |
commit | 852ff1c362b9e92f4bc08997c4837c6190d6e530 (patch) | |
tree | d6b554fa6f5d28bb296be83e7a271b9c1e16b050 /contrib/completion/git-completion.bash | |
parent | 282616c72d1d08a77ca4fe1186cb708c38408d87 (diff) | |
download | git-852ff1c362b9e92f4bc08997c4837c6190d6e530.tar.gz git-852ff1c362b9e92f4bc08997c4837c6190d6e530.tar.xz |
completion: fix global bash variable leak on __gitcompappend
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.bash')
-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 019026efc..2504fb605 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -180,7 +180,7 @@ fi __gitcompappend () { - local i=${#COMPREPLY[@]} + local x i=${#COMPREPLY[@]} for x in $1; do if [[ "$x" == "$3"* ]]; then COMPREPLY[i++]="$2$x$4" |