summaryrefslogtreecommitdiffhomepage
path: root/gbp/command_wrappers.py
diff options
context:
space:
mode:
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):