From 27a921eefd474dd7fed0abed8c3667aa4e1bcaa2 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 28 Oct 2011 13:29:57 +0200 Subject: GitRepository: simplify is_empty Git-Dch: Ignore --- gbp/git.py | 7 ++----- 1 file 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): """ -- cgit v1.2.3