From 782452631651d2fbeb33b7adc12cae0c966f7cee Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 26 Oct 2011 20:06:48 +0200 Subject: GitRepository: use branch instead of get_branch for readability --- gbp/git.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gbp/git.py') diff --git a/gbp/git.py b/gbp/git.py index d8ba6e8..17e2fe3 100644 --- a/gbp/git.py +++ b/gbp/git.py @@ -429,7 +429,7 @@ class GitRepository(object): @param branch: name of the branch to switch to """ - if self.get_branch() == branch: + if self.branch == branch: return if self.bare: @@ -464,7 +464,7 @@ class GitRepository(object): args = [ "-D" ] args += [ "-r" ] if remote else [] - if self.get_branch() != branch: + if self.branch != branch: self._git_command("branch", args + [branch]) else: raise GitRepositoryError, "Can't delete the branch you're on" @@ -511,7 +511,7 @@ class GitRepository(object): @rtype: bool """ # an empty repo has no branches: - if self.get_branch(): + if self.branch: return False else: return True -- cgit v1.2.3