summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorEduardo R. D'Avila <erdavila@gmail.com>2013-06-26 03:05:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-26 20:03:01 (GMT)
commit15981f4eec9c6a7c12b9c0fbe98e68228c46edb7 (patch)
treea7e6f5b7c00a5451059533656a057cfe92f18034 /contrib/completion
parentf3bd62d02ff189c42d404f9a0b347499e016cc23 (diff)
downloadgit-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.zip
git-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.tar.gz
git-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.tar.bz2
git-prompt.sh: do not print duplicate clean color code
Do not print a duplicate clean color code when there is no other indicators other than the current branch in colored prompt. Acked-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Eduardo R. D'Avila <erdavila@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-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 fdedb45..545518a 100644
--- a/contrib/completion/git-prompt.sh
+++ b/contrib/completion/git-prompt.sh
@@ -253,8 +253,8 @@ __git_ps1_colorize_gitstring ()
branch_color="$bad_color"
fi
c="$branch_color$c"
- b="$b$c_clear"
+ z="$c_clear$z"
if [ "$w" = "*" ]; then
w="$bad_color$w"
fi