diff options
author | Robby Russell <robby@planetargon.com> | 2013-03-26 22:11:04 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-03-26 22:11:04 -0700 |
commit | 5cde893ce0ade6f192641f342a0d3d754a06bd80 (patch) | |
tree | 6207495aab0368fbf6c44e6e265aabad9a634311 | |
parent | 4e101bed8661c342eade6d4ad094bdf3337b3b2e (diff) | |
parent | 56e835426bc895a191540d4d640b7750a81ff23a (diff) | |
download | zsh-5cde893ce0ade6f192641f342a0d3d754a06bd80.tar.gz zsh-5cde893ce0ade6f192641f342a0d3d754a06bd80.tar.bz2 zsh-5cde893ce0ade6f192641f342a0d3d754a06bd80.zip |
Merge pull request #1661 from hellerbarde/master
Fix some problems with git enabled prompts where they *always* claim to have untracked files
-rw-r--r-- | lib/git.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.zsh b/lib/git.zsh index bcd6cc055..67075248e 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -62,7 +62,7 @@ function git_prompt_long_sha() { git_prompt_status() { INDEX=$(git status --porcelain -b 2> /dev/null) STATUS="" - if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then + if $(echo "$INDEX" | grep '^\?\? ' &> /dev/null); then STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS" fi if $(echo "$INDEX" | grep '^A ' &> /dev/null); then |