diff options
author | Guido Günther <agx@sigxcpu.org> | 2008-10-31 09:59:06 +0100 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-10-31 09:59:06 +0100 |
commit | d4d45805c859bc530ed16f84079b21a57bfd0c03 (patch) | |
tree | 5704f8b419f7336bc8326042975aad8f6ed9175c /git-import-orig | |
parent | 245d5f1ec62843ac86a5f433cdfe64021764272f (diff) | |
download | git-buildpackage-d4d45805c859bc530ed16f84079b21a57bfd0c03.tar.gz git-buildpackage-d4d45805c859bc530ed16f84079b21a57bfd0c03.tar.bz2 git-buildpackage-d4d45805c859bc530ed16f84079b21a57bfd0c03.zip |
use repo.set_branch()
Diffstat (limited to 'git-import-orig')
-rwxr-xr-x | git-import-orig | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/git-import-orig b/git-import-orig index bf5a2b0e..1691426f 100755 --- a/git-import-orig +++ b/git-import-orig @@ -124,7 +124,6 @@ def main(argv): if options.verbose: gbpc.Command.verbose = True - gitCheckoutMaster = gbpc.GitCheckoutBranch(options.debian_branch) gitShowBranch = gbpc.GitShowBranch() try: @@ -191,7 +190,7 @@ on howto create it otherwise use --upstream-branch to specify it. print "Initial import of '%s' %s..." % (archive, filter_msg) else: print "Importing '%s' to branch '%s'%s..." % (archive, options.upstream_branch, filter_msg) - gbpc.GitCheckoutBranch(options.upstream_branch)() + repo.set_branch(options.upstream_branch) import_upstream_tree(repo, orig_dir, version, options.filters, verbose=not is_empty) if options.pristine_tar: @@ -206,9 +205,8 @@ on howto create it otherwise use --upstream-branch to specify it. if is_empty: gbpc.GitBranch()(options.upstream_branch) elif options.merge: - print "Merging to %s" % options.debian_branch - gitCheckoutMaster() - gitShowBranch() + print "Merging to '%s'" % options.debian_branch + repo.set_branch(options.debian_branch) try: gbpc.GitMerge(tag)() except gbpc.CommandExecFailed: |