summaryrefslogtreecommitdiff
path: root/git-import-orig
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-09-29 19:09:33 +0200
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-09-29 19:09:33 +0200
commit8b155f5eade2ee4cdfd01f786ddb95b5db2ba70d (patch)
treee0457e2d8815fbca9224c3c565fe00a487b110bc /git-import-orig
parentc6074bbc5c47d87d249f5cedfce4a623a1e43157 (diff)
downloadgit-buildpackage-8b155f5eade2ee4cdfd01f786ddb95b5db2ba70d.tar.gz
git-buildpackage-8b155f5eade2ee4cdfd01f786ddb95b5db2ba70d.tar.bz2
git-buildpackage-8b155f5eade2ee4cdfd01f786ddb95b5db2ba70d.zip
git-import-dsc: don't fail if the dsc is a plain filename without a directory componentdebian/0.2.2
git-import-{orig,dsc}: allow to set the name of the upstream branch
Diffstat (limited to 'git-import-orig')
-rwxr-xr-xgit-import-orig14
1 files changed, 9 insertions, 5 deletions
diff --git a/git-import-orig b/git-import-orig
index 642f9b72..e1e50f13 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -26,11 +26,6 @@ from optparse import OptionParser
from git_buildpackage import *
from git_buildpackage.utils import is_repository_clean
-# Used GIT Commands
-gitCheckoutUpstream=GitCheckoutBranch('upstream')
-gitCheckoutMaster=GitCheckoutBranch('master')
-gitShowBranch=GitShowBranch()
-gitPullUpstream=GitPull('.', 'upstream')
def cleanupTmpTree(tree):
RemoveTree(tree)()
@@ -60,8 +55,17 @@ def main():
help="Upstream Version")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
+ parser.add_option("--upstream-branch", dest="upstream", default='upstream',
+ 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 being package is developed on, default is 'master'")
(options, args) = parser.parse_args()
+ gitCheckoutUpstream=GitCheckoutBranch(options.upstream)
+ gitCheckoutMaster=GitCheckoutBranch(options.debian)
+ gitShowBranch=GitShowBranch()
+ gitPullUpstream=GitPull('.', options.upstream)
+
if options.verbose:
Command.verbose = True