diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-10-03 17:22:23 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-10-03 17:22:23 +0200 |
commit | e76a6a180a57701ae4ae381f74523cacb3152780 (patch) | |
tree | 15038ab5e7a76599c518f7c908d508f9987d5900 /git-import-orig | |
parent | df32a59dee371499b14bc4bceaf40becdfcaf3d2 (diff) | |
download | git-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-x | git-import-orig | 5 |
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() |