diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-09-05 13:35:23 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-09-05 13:44:38 +0200 |
commit | 2663f2312c167bbbeb900aff3b8b07f9afbd4f69 (patch) | |
tree | 8619f56200550a9b7ac9db227cb4bf26a1d1e835 | |
parent | edfe670d4bffeccc2a55df572ea14c0245bd30ea (diff) | |
download | git-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.tar.gz git-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.tar.bz2 git-buildpackage-2663f2312c167bbbeb900aff3b8b07f9afbd4f69.zip |
make GitBranch remote branch aware
-rw-r--r-- | gbp/command_wrappers.py | 7 |
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): |