Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 9ad3f74

Browse files
committed
Merge branch 'sg/prompt-svn-remote-fix' into maint
Bash prompting code to deal with an SVN remote as an upstream were coded in a way not supported by older Bash versions (3.x). * sg/prompt-svn-remote-fix: bash prompt: don't use '+=' operator in show upstream code path
2 parents 0ceb753 + 52ec889 commit 9ad3f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-prompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ __git_ps1_show_upstream ()
110110
;;
111111
svn-remote.*.url)
112112
svn_remote[$((${#svn_remote[@]} + 1))]="$value"
113-
svn_url_pattern+="\\|$value"
113+
svn_url_pattern="$svn_url_pattern\\|$value"
114114
upstream=svn+git # default upstream is SVN if available, else git
115115
;;
116116
esac

0 commit comments

Comments
 (0)