Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sn/complete-bash-wo-process-subst'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 9 Nov 2011 13:46:39 +0000
(
05:46
-0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 9 Nov 2011 13:46:39 +0000
(
05:46
-0800)
* sn/complete-bash-wo-process-subst:
completion: don't leak variable from the prompt into environment
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
8a04247
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 98af8f5c7ee68876e94194524cc0cda9d3f25345..b7c1edf1cc763199d41a490b212a3b65ea581a86 100755
(executable)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-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)