diff options
author | 2013-06-26 00:05:16 -0300 | |
---|---|---|
committer | 2013-06-26 13:03:01 -0700 | |
commit | 15981f4eec9c6a7c12b9c0fbe98e68228c46edb7 (patch) | |
tree | a7e6f5b7c00a5451059533656a057cfe92f18034 /contrib/completion | |
parent | t9903: remove redundant tests (diff) | |
download | tgif-15981f4eec9c6a7c12b9c0fbe98e68228c46edb7.tar.xz |
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.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh index fdedb45cd6..545518a4db 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 |