From e76a6a180a57701ae4ae381f74523cacb3152780 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Wed, 3 Oct 2007 17:22:23 +0200 Subject: Create upstream branch when importing into an empty archive (Closes: #443305) --- git-import-orig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-import-orig') diff --git a/git-import-orig b/git-import-orig index 53db6273..b9c3e8d2 100755 --- a/git-import-orig +++ b/git-import-orig @@ -167,11 +167,14 @@ create it otherwise use --upstream-branch to specify it. gbpc.GitCheckoutBranch(options.upstream)() else: print "Initial import of '%s'..." % archive + import_source_tree(repo, orig_dir, version, options.upstream, options.filter) gbpc.GitTag(options.sign_tags, options.keyid)(build_tag(options.upstream_tag, version), msg="Upstream version %s" % version) - if options.merge and not is_empty: + if is_empty: + gbpc.GitBranch()(options.upstream) + elif options.merge: print "Merging to %s" % options.debian gitCheckoutMaster() gitShowBranch() -- cgit v1.2.3