Skip to content
Snippets Groups Projects
Commit 89ba311d authored by Junio C Hamano's avatar Junio C Hamano
Browse files

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
parents 631f6f1d 852ff1c3
Branches
Tags
No related merge requests found
...@@ -186,7 +186,7 @@ fi ...@@ -186,7 +186,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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment