summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2007-10-07 17:05:35 +0200
committerGuido Guenther <agx@sigxcpu.org>2007-10-07 17:05:35 +0200
commit04992e93322c1c8e14223f6a605937fea256afdf (patch)
treef352bbf9d256e167e8a84c3184619f102f31f42a
parent19b405d6aedb36fba503ef4197c20a84ed3c8fe6 (diff)
make sure the changelog section's trailer points to the person invoking git-dch
-rwxr-xr-xgit-dch7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-dch b/git-dch
index 32fb50b1..bcc2241a 100755
--- a/git-dch
+++ b/git-dch
@@ -67,6 +67,12 @@ def add_changelog_section(msg, distribution):
cmd = "dch --distribution=%s -i %s" % (distribution, msg)
system(cmd)
+def fixup_trailer():
+ """fixup the changelog trailer's comitter and email address - it might
+ otherwise point to the last git committer instead of the person creating
+ the changelog"""
+ cmd = "dch \"\""
+ system(cmd)
def head_commit():
"""get the commit id of the last commit on HEAD"""
@@ -238,6 +244,7 @@ def main(argv):
if cp['Distribution'] != "UNRELEASED":
add_changelog_section(distribution="UNRELEASED", msg="UNRELEASED")
shortlog_to_dch(changes)
+ fixup_trailer()
if options.snapshot:
(snap, version) = snapshot(changelog)
print "Changelog has been prepared for snapshot #%d at %s" % (snap, version)