completion: fix global bash variable leak on __gitcompappend
Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
282616c72d
commit
852ff1c362
|
@ -180,7 +180,7 @@ fi
|
||||||
|
|
||||||
__gitcompappend ()
|
__gitcompappend ()
|
||||||
{
|
{
|
||||||
local i=${#COMPREPLY[@]}
|
local x i=${#COMPREPLY[@]}
|
||||||
for x in $1; do
|
for x in $1; do
|
||||||
if [[ "$x" == "$3"* ]]; then
|
if [[ "$x" == "$3"* ]]; then
|
||||||
COMPREPLY[i++]="$2$x$4"
|
COMPREPLY[i++]="$2$x$4"
|
||||||
|
|
Loading…
Reference in New Issue