summaryrefslogtreecommitdiff
path: root/plugins/git-prompt/gitstatus.py
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-12-29 11:51:05 +0100
committerMarc Cornellà <hello@mcornella.com>2021-12-29 11:54:13 +0100
commitbc7bc74469ee5e412ae54c45ebaa5e07295323c5 (patch)
tree9be78f2773f61cd559db41a8ff6b203f757594d1 /plugins/git-prompt/gitstatus.py
parent7e4273f44075ff4ec81778a16bf578e05cc8ca4c (diff)
downloadzsh-bc7bc74469ee5e412ae54c45ebaa5e07295323c5.tar.gz
zsh-bc7bc74469ee5e412ae54c45ebaa5e07295323c5.tar.bz2
zsh-bc7bc74469ee5e412ae54c45ebaa5e07295323c5.zip
fix(git-prompt): fix clean prompt when stash is not empty (#9978)
Fixes #9978
Diffstat (limited to 'plugins/git-prompt/gitstatus.py')
-rw-r--r--plugins/git-prompt/gitstatus.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py
index 786274a71..4dea8000f 100644
--- a/plugins/git-prompt/gitstatus.py
+++ b/plugins/git-prompt/gitstatus.py
@@ -81,7 +81,7 @@ for st in status:
staged.append(st)
stashed = get_stash()
-if not changed and not staged and not conflicts and not untracked and not stashed:
+if not changed and not staged and not conflicts and not untracked:
clean = 1
else:
clean = 0