aboutsummaryrefslogtreecommitdiffhomepage
path: root/git-buildpackage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-06-19 15:55:28 +0200
committerGuido Günther <agx@sigxcpu.org>2010-06-19 16:05:46 +0200
commit5988e2087615a3eb218cbee7c6eb470b9df9be0c (patch)
tree59229dd3a4dfdd8cc8e8a426124ceafe26bdd151 /git-buildpackage
parent7f0b81f1f8f132dbc6869613382a5455e8af3078 (diff)
Add 'ignore-branch' option
This disables the 'current branch' == 'debian-branch' check.
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage
index 7f2b2d40..7fd9d468 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -228,6 +228,7 @@ def main(argv):
help="Compression level, default is '%(compression-level)s'")
branch_group.add_config_file_option(option_name="upstream-branch", dest="upstream_branch")
branch_group.add_config_file_option(option_name="debian-branch", dest="debian_branch")
+ branch_group.add_boolean_config_file_option(option_name = "ignore-branch", dest="ignore_branch")
cmd_group.add_config_file_option(option_name="builder", dest="builder",
help="command to build the Debian package, default is '%(builder)s'")
cmd_group.add_config_file_option(option_name="cleaner", dest="cleaner",
@@ -274,9 +275,10 @@ def main(argv):
print >>sys.stderr, out
raise GbpError, "Use --git-ignore-new to ignore."
+ if not options.ignore_new and not options.ignore_branch:
if branch != options.debian_branch:
print >>sys.stderr, "You are not on branch '%s' but on '%s'" % (options.debian_branch, branch)
- raise GbpError, "Use --git-ignore-new to ignore or --git-debian-branch to set the branch name."
+ raise GbpError, "Use --git-ignore-branch to ignore or --git-debian-branch to set the branch name."
try:
cp = du.parse_changelog(changelog)