From 7f63c3b0c708ca0b30acfbb5d39b571269a6ffd7 Mon Sep 17 00:00:00 2001 From: Dan Nguyen Date: Mon, 21 Sep 2015 00:47:13 -0500 Subject: [PATCH] Fix a problem calculating clean in the python script --- gitstatus.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitstatus.py b/gitstatus.py index 423619a..3b12c3b 100755 --- a/gitstatus.py +++ b/gitstatus.py @@ -119,7 +119,8 @@ for st in status: elif st[0] != ' ': staged.append(st) -if not changed and not staged and not conflicts and not untracked: +stashed=get_stash() +if not changed and not staged and not conflicts and not untracked and not stashed: clean = 1 else: clean = 0 @@ -134,7 +135,7 @@ out = '\n'.join([ str(len(conflicts)), str(len(changed)), str(len(untracked)), - str(get_stash()), + str(stashed), str(clean) ]) Print(out)