diff options
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/git/repository.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 0da4060..f3cde12 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -445,6 +445,8 @@ class GitRepository(object): out, ret = self._git_getoutput('branch', args.args) for line in out: + # remove prefix '*' for current branch before comparing + line = line.replace('*', '') if line.strip() == branch: return True return False |