]> git.ipfire.org Git - thirdparty/git.git/commitdiff
bash prompt: don't use '+=' operator in show upstream code path
authorSZEDER Gábor <szeder@ira.uka.de>
Tue, 15 Oct 2013 12:21:11 +0000 (14:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Oct 2013 21:20:37 +0000 (14:20 -0700)
The '+=' operator is not supported by old Bash versions (3.0) we still
care about.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-prompt.sh

index d6c61b2bdecc5ca89e21ece5df7c2e4bbec9373c..998722cf7f5d65639654f9f7e74f4c2b3d5452f3 100644 (file)
@@ -110,7 +110,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