summaryrefslogtreecommitdiff
path: root/contrib/completion/git-prompt.sh
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2013-10-15 12:21:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-15 21:20:37 (GMT)
commit52ec889d1ab3405796dd4fb4c262f950927a6b71 (patch)
treec98c5acdd28966f23f78c853be40d89dc9ebd63d /contrib/completion/git-prompt.sh
parent02a110ad435a6ccda648f09f94e546dfd7bdd0ac (diff)
downloadgit-52ec889d1ab3405796dd4fb4c262f950927a6b71.zip
git-52ec889d1ab3405796dd4fb4c262f950927a6b71.tar.gz
git-52ec889d1ab3405796dd4fb4c262f950927a6b71.tar.bz2
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 <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-prompt.sh')
-rw-r--r--contrib/completion/git-prompt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh
index d6c61b2..998722c 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -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