Skip to content

Commit 248dbbe

Browse files
committed
Merge branch 'sn/complete-bash-wo-process-subst'
* sn/complete-bash-wo-process-subst: completion: don't leak variable from the prompt into environment
2 parents 8a04247 + 4804d43 commit 248dbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ __git_ps1_show_upstream ()
110110
local upstream=git legacy="" verbose=""
111111

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

0 commit comments

Comments
 (0)