Browse Source

completion: fix global bash variable leak on __gitcompappend

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Márcio Almada 10 years ago committed by Junio C Hamano
parent
commit
852ff1c362
  1. 2
      contrib/completion/git-completion.bash

2
contrib/completion/git-completion.bash

@ -180,7 +180,7 @@ fi @@ -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"

Loading…
Cancel
Save