d615f6437408d66fa8aad031eb45942bf84fed86

Author
Felipe Contreras <felipe.contreras@gmail.com>
Committer
Felipe Contreras <felipe.contreras@gmail.com>
Date

Message

git: fix parse_git_dirty()

If oh-my-zsh.hide-status is configured, the 'clean' code won't be
generated, and some themes might end up distorted. Let's generate the
'clean' code even when we don't want the show the dirty status.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index 76fe9b142cb35fb8d88f5a9e9cf9830ff5abb333..353c42f3cdb3ff0705190c51b22eeaf0d4c7537e 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -21,6 +21,8 @@ parse_git_dirty() {
 6     else
 7       echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
 8     fi  
 9+  else
10+    echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
11   fi  
12 }
13