summaryrefslogtreecommitdiff
path: root/gbp/command_wrappers.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-09-05 13:35:23 +0200
committerGuido Günther <agx@sigxcpu.org>2009-09-05 13:44:38 +0200
commit2663f2312c167bbbeb900aff3b8b07f9afbd4f69 (patch)
tree8619f56200550a9b7ac9db227cb4bf26a1d1e835 /gbp/command_wrappers.py
parentedfe670d4bffeccc2a55df572ea14c0245bd30ea (diff)
downloadgit-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.tar.gz
git-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.tar.bz2
git-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.zip
make GitBranch remote branch aware
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r--gbp/command_wrappers.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py
index 49181354..1a966c17 100644
--- a/gbp/command_wrappers.py
+++ b/gbp/command_wrappers.py
@@ -223,9 +223,12 @@ class GitBranch(GitCommand):
def __init__(self):
GitCommand.__init__(self, 'branch')
- def __call__(self, branch):
+ def __call__(self, branch, remote=None):
self.run_error = 'Couldn\'t create branch "%s"' % (branch,)
- GitCommand.__call__(self, [branch])
+ options = [branch]
+ if remote:
+ options += [ remote ]
+ GitCommand.__call__(self, options)
class GitCheckoutBranch(GitCommand):