diff options
Diffstat (limited to 'gbp/git.py')
-rw-r--r-- | gbp/git.py | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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): """ |