diff options
author | Guido Günther <g.guenther@tarent.de> | 2011-10-28 13:29:57 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-28 18:49:30 +0200 |
commit | 27a921eefd474dd7fed0abed8c3667aa4e1bcaa2 (patch) | |
tree | 3c4b9ff1b1302e456409642d0a533bb0ba2f20b6 | |
parent | 3d80c335ecbac1db0826d9d5d03fe36b92ccf62d (diff) |
GitRepository: simplify is_empty
Git-Dch: Ignore
-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): """ |