Skip to content

Commit 852ff1c

Browse files
marcioAlmadagitster
authored andcommitted
completion: fix global bash variable leak on __gitcompappend
Signed-off-by: Junio C Hamano <[email protected]>
1 parent 282616c commit 852ff1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fi
180180

181181
__gitcompappend ()
182182
{
183-
local i=${#COMPREPLY[@]}
183+
local x i=${#COMPREPLY[@]}
184184
for x in $1; do
185185
if [[ "$x" == "$3"* ]]; then
186186
COMPREPLY[i++]="$2$x$4"

0 commit comments

Comments
 (0)