Skip to content

Commit 52ec889

Browse files
szedergitster
authored andcommitted
bash prompt: don't use '+=' operator in show upstream code path
The '+=' operator is not supported by old Bash versions (3.0) we still care about. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 02a110a commit 52ec889

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)