Skip to content

Commit 89ba311

Browse files
committed
Merge branch 'ma/bash-completion-leaking-x' into maint
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
2 parents 631f6f1 + 852ff1c commit 89ba311

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
@@ -186,7 +186,7 @@ fi
186186

187187
__gitcompappend ()
188188
{
189-
local i=${#COMPREPLY[@]}
189+
local x i=${#COMPREPLY[@]}
190190
for x in $1; do
191191
if [[ "$x" == "$3"* ]]; then
192192
COMPREPLY[i++]="$2$x$4"

0 commit comments

Comments
 (0)