aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git_utils.py')
-rw-r--r--gbp/git_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index 19e280a1..54b70d25 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -56,9 +56,9 @@ class GitRepository(object):
self.__check_path()
clean_msg = 'nothing to commit'
out = self.__git_getoutput('status')
- if out[0].strip() == clean_msg:
+ if out[0].startswith('#') and out[1].strip().startswith(clean_msg):
ret = True
- elif out[0].startswith('#') and out[1].strip() == clean_msg:
+ elif out[0].strip().startswith(clean_msg): # git << 1.5
ret = True
else:
ret = False