aboutsummaryrefslogtreecommitdiff
path: root/git-buildpackage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-12-08 16:32:32 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-12-08 16:32:32 +0100
commit9e54f169eae8db3984302171d7772795deac9513 (patch)
tree83b2a252b55f35f57b18ba7c402383aa77e074a1 /git-buildpackage
parent960385597d124c0881a5779448beb4c0b6d85c9a (diff)
support signed tagsdebian/0.2.15
Diffstat (limited to 'git-buildpackage')
-rwxr-xr-xgit-buildpackage6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-buildpackage b/git-buildpackage
index f7a5663..83df28c 100755
--- a/git-buildpackage
+++ b/git-buildpackage
@@ -63,6 +63,10 @@ def main(argv):
help="command to build the package e.g. default is '%(builder)s'")
parser.add_config_file_option(option_name="upstream-branch", dest="upstream_branch",
help="upstream branch, default is '%(upstream-branch)s'")
+ parser.add_config_file_option(option_name="sign-tags", dest="sign_tag",
+ help="sign git tags", action="store_true")
+ parser.add_config_file_option(option_name="keyid", dest="keyid",
+ help="keyid to sign tags with")
(options, args) = parser.parse_args(args)
if options.verbose:
@@ -95,7 +99,7 @@ def main(argv):
return 1
else:
print "Tagging", version
- if not GitTag()(sanitize_version(version)): return 1
+ if not GitTag(options.sign_tag, options.keyid)(sanitize_version(version)): return 1
except CommandExecFailed:
return 1
return 0