summaryrefslogtreecommitdiff
path: root/git-import-orig
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-11-08 10:44:46 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-11-08 10:44:46 +0100
commitc48e88ca55a8ec2c90f4846a3081c1cc136aa826 (patch)
tree000b93e5cfc8f22ffd5c74b57c5d6a644577c446 /git-import-orig
parent7aa6ff42c4b0cebff45ee15e46765914edaf817f (diff)
downloadgit-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.tar.gz
git-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.tar.bz2
git-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.zip
git-import-orig: implement "--no-merge"debian/0.2.8
Diffstat (limited to 'git-import-orig')
-rwxr-xr-xgit-import-orig15
1 files changed, 9 insertions, 6 deletions
diff --git a/git-import-orig b/git-import-orig
index c085e08b..9fae9131 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -60,6 +60,8 @@ def main():
help="name of the upstream branch, default is 'upstream'")
parser.add_option("--debian-branch", dest='debian', default='master',
help="name of the branch the debian package is being developed on, default is 'master'")
+ parser.add_option("--no-merge", dest='merge', action="store_false", default=True,
+ help="after import dont do any merging to another branch")
(options, args) = parser.parse_args()
gitCheckoutUpstream=GitCheckoutBranch(options.upstream)
@@ -110,12 +112,13 @@ def main():
gitShowBranch()
GitLoadDirs()(origdir)
GitTag()(sanitize_version(version))
-
- print "Merging to master..."
- gitCheckoutMaster()
- gitShowBranch()
- gitPullUpstream()
- Dch("%s-1" % (version,), 'New Upstream Version')()
+
+ if options.merge:
+ print "Merging to master..."
+ gitCheckoutMaster()
+ gitShowBranch()
+ gitPullUpstream()
+ Dch("%s-1" % (version,), 'New Upstream Version')()
except CommandExecFailed:
print >>sys.stderr, "Import of %s failed" % (tgz,)
cleanupTmpTree(tmpdir)