aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git/repository.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-10 20:28:04 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-10 20:30:46 +0100
commitb956ebfc138422aecb0e0dec0a603c3b8316a12e (patch)
tree34bd66c71078bc96402a21e5a85c1b1b8e6d1516 /gbp/git/repository.py
parent3d4adca7af78280b66750412633774a478e20465 (diff)
GitRepository.branch_contains: fix misplaced remote parameter
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r--gbp/git/repository.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 640cc88a..fe405884 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -381,8 +381,9 @@ class GitRepository(object):
@param remote: whether to check remote instead of local branches
@type remote: C{bool}
"""
- args = GitArgs('--contains')
+ args = GitArgs()
args.add_true(remote, '-r')
+ args.add('--contains')
args.add(commit)
out, ret = self.__git_getoutput('branch', args.args)