Skip to content

Commit

Permalink
Merge branch 'sn/complete-bash-wo-process-subst'
Browse files Browse the repository at this point in the history
* sn/complete-bash-wo-process-subst:
  completion: don't leak variable from the prompt into environment
  • Loading branch information
Junio C Hamano committed Nov 9, 2011
2 parents 8a04247 + 4804d43 commit 248dbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ __git_ps1_show_upstream ()
local upstream=git legacy="" verbose=""

# get some config options from git-config
output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
local output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
while read key value; do
case "$key" in
bash.showupstream)
Expand Down

0 comments on commit 248dbbe

Please sign in to comment.