summaryrefslogtreecommitdiff
path: root/git-import-orig
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-10-03 17:22:23 +0200
committerGuido Guenther <agx@sigxcpu.org>2007-10-03 17:22:23 +0200
commite76a6a180a57701ae4ae381f74523cacb3152780 (patch)
tree15038ab5e7a76599c518f7c908d508f9987d5900 /git-import-orig
parentdf32a59dee371499b14bc4bceaf40becdfcaf3d2 (diff)
downloadgit-buildpackage-e76a6a180a57701ae4ae381f74523cacb3152780.tar.gz
git-buildpackage-e76a6a180a57701ae4ae381f74523cacb3152780.tar.bz2
git-buildpackage-e76a6a180a57701ae4ae381f74523cacb3152780.zip
Create upstream branch when importing into an empty archive (Closes: #443305)
Diffstat (limited to 'git-import-orig')
-rwxr-xr-xgit-import-orig5
1 files changed, 4 insertions, 1 deletions
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()