Merge branch 'sg/prompt-svn-remote-fix'
authorJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2013 17:43:38 +0000 (10:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2013 17:43:38 +0000 (10:43 -0700)
Bash portability fix.

* sg/prompt-svn-remote-fix:
bash prompt: don't use '+=' operator in show upstream code path

contrib/completion/git-prompt.sh
index 202e2e520f42059c308f196e0c5022c3dbb4a142..7b732d2aeba0e3bca3b42d28f2f8f5730a08ccee 100644 (file)
@@ -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