summaryrefslogtreecommitdiff
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gbp/git.py b/gbp/git.py
index d4192f0..43e5388 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -563,14 +563,11 @@ class GitRepository(object):
Is the repository empty?
@return: True if the repositorydoesn't have any commits,
- False otherwise
+ False otherwise
@rtype: C{bool}
"""
# an empty repo has no branches:
- if self.branch:
- return False
- else:
- return True
+ return False if self.branch else True
def rev_parse(self, name):
"""