diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-22 14:25:13 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-23 16:20:31 +0200 |
commit | 9f168491bc9240919ffd48ca5450dc8b45137dc3 (patch) | |
tree | dd820b8bacc8bc6674753fd840a5972212d7fa24 /gbp-clone | |
parent | 83fd2c679fb4eb0aad0a05f95968603d04b3fab6 (diff) |
Replace GitBranch by GitRepository.create_branch()
Diffstat (limited to 'gbp-clone')
-rwxr-xr-x | gbp-clone | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ import os, os.path from gbp.config import (GbpOptionParser, GbpOptionGroup) from gbp.git import (GitRepositoryError, GitRepository) from gbp.command_wrappers import (GitClone, Command, CommandExecFailed, - GitBranch, PristineTar) + PristineTar) from gbp.errors import GbpError import gbp.log @@ -89,7 +89,7 @@ def main(argv): local = remote.replace("origin/", "", 1) if not repo.has_branch(local) and \ local != "HEAD": - GitBranch()(local, remote) + repo.create_branch(local, remote) else: # only track gbp's default branches branches = [ options.debian_branch, options.upstream_branch ] if options.pristine_tar: @@ -99,7 +99,7 @@ def main(argv): remote = 'origin/%s' % branch if repo.has_branch(remote, remote=True) and \ not repo.has_branch(branch): - GitBranch()(branch, remote) + repo.create_branch(branch, remote) repo.set_branch(options.debian_branch) |