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: fix issue with process substitution not working on Git for Windows
  • Loading branch information
Junio C Hamano committed Oct 27, 2011
2 parents f124fe3 + e5b8eeb commit 4801546
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +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 ')"
while read key value; do
case "$key" in
bash.showupstream)
Expand All @@ -125,7 +126,7 @@ __git_ps1_show_upstream ()
upstream=svn+git # default upstream is SVN if available, else git
;;
esac
done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')
done <<< "$output"

# parse configuration values
for option in ${GIT_PS1_SHOWUPSTREAM}; do
Expand Down

0 comments on commit 4801546

Please sign in to comment.