Browse Source

Merge branch 'sg/prompt-svn-remote-fix'

Bash portability fix.

* sg/prompt-svn-remote-fix:
  bash prompt: don't use '+=' operator in show upstream code path
maint
Junio C Hamano 11 years ago
parent
commit
9f279af862
  1. 2
      contrib/completion/git-prompt.sh

2
contrib/completion/git-prompt.sh

@ -111,7 +111,7 @@ __git_ps1_show_upstream () @@ -111,7 +111,7 @@ __git_ps1_show_upstream ()
;;
svn-remote.*.url)
svn_remote[$((${#svn_remote[@]} + 1))]="$value"
svn_url_pattern+="\\|$value"
svn_url_pattern="$svn_url_pattern\\|$value"
upstream=svn+git # default upstream is SVN if available, else git
;;
esac

Loading…
Cancel
Save