From d4d45805c859bc530ed16f84079b21a57bfd0c03 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 31 Oct 2008 09:59:06 +0100 Subject: use repo.set_branch() --- git-import-orig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'git-import-orig') 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: -- cgit v1.2.3