diff options
-rw-r--r-- | gbp/git_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py index 9cfb0ec5..2ad4235c 100644 --- a/gbp/git_utils.py +++ b/gbp/git_utils.py @@ -41,7 +41,7 @@ class GitRepository(object): def has_branch(self, branch): """check if the repository has branch 'branch'""" self.__check_path() - for line in self.__git_getoutput('branch')[0]: + for line in self.__git_getoutput('branch', [ '--no-color' ])[0]: if line.split(' ', 1)[1].strip() == branch: return True return False @@ -57,7 +57,7 @@ class GitRepository(object): def get_branch(self): """on what branch is the current working copy""" self.__check_path() - for line in self.__git_getoutput('branch')[0]: + for line in self.__git_getoutput('branch', [ '--no-color' ])[0]: if line.startswith('*'): return line.split(' ', 1)[1].strip() |