completion: fix global bash variable leak on __gitcompappend
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Márcio Almada committed
Apr 8, 2015 at 02:45 UTC
852ff1c362b9e92f4bc08997c4837c6190d6e530
1 file changed
+1
-1
contrib/completion/git-completion.bash
+1
-1
@@ -180,7 +180,7 @@ fi
180
181
__gitcompappend ()
182
{
183
- local i=${#COMPREPLY[@]}
183
+ local x i=${#COMPREPLY[@]}
184
for x in $1; do
185
if [[ "$x" == "$3"* ]]; then
186
COMPREPLY[i++]="$2$x$4"