提交 852ff1c3 编写于 作者: M Márcio Almada 提交者: Junio C Hamano

completion: fix global bash variable leak on __gitcompappend

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 282616c7
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册