Merge branch 'sn/complete-bash-wo-process-subst'
* sn/complete-bash-wo-process-subst: completion: fix issue with process substitution not working on Git for Windows
This commit is contained in:
commit
4801546528
@ -110,6 +110,7 @@ __git_ps1_show_upstream ()
|
|||||||
local upstream=git legacy="" verbose=""
|
local upstream=git legacy="" verbose=""
|
||||||
|
|
||||||
# get some config options from git-config
|
# 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 ')"
|
||||||
while read key value; do
|
while read key value; do
|
||||||
case "$key" in
|
case "$key" in
|
||||||
bash.showupstream)
|
bash.showupstream)
|
||||||
@ -125,7 +126,7 @@ __git_ps1_show_upstream ()
|
|||||||
upstream=svn+git # default upstream is SVN if available, else git
|
upstream=svn+git # default upstream is SVN if available, else git
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')
|
done <<< "$output"
|
||||||
|
|
||||||
# parse configuration values
|
# parse configuration values
|
||||||
for option in ${GIT_PS1_SHOWUPSTREAM}; do
|
for option in ${GIT_PS1_SHOWUPSTREAM}; do
|
||||||
|
Loading…
Reference in New Issue
Block a user