We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f124fe3 + e5b8eeb commit 4801546Copy full SHA for 4801546
contrib/completion/git-completion.bash
@@ -110,6 +110,7 @@ __git_ps1_show_upstream ()
110
local upstream=git legacy="" verbose=""
111
112
# 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 ')"
114
while read key value; do
115
case "$key" in
116
bash.showupstream)
@@ -125,7 +126,7 @@ __git_ps1_show_upstream ()
125
126
upstream=svn+git # default upstream is SVN if available, else git
127
;;
128
esac
- done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')
129
+ done <<< "$output"
130
131
# parse configuration values
132
for option in ${GIT_PS1_SHOWUPSTREAM}; do
0 commit comments