diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-10-07 17:05:35 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2007-10-07 17:05:35 +0200 |
commit | 04992e93322c1c8e14223f6a605937fea256afdf (patch) | |
tree | f352bbf9d256e167e8a84c3184619f102f31f42a | |
parent | 19b405d6aedb36fba503ef4197c20a84ed3c8fe6 (diff) | |
download | git-buildpackage-04992e93322c1c8e14223f6a605937fea256afdf.tar.gz git-buildpackage-04992e93322c1c8e14223f6a605937fea256afdf.tar.bz2 git-buildpackage-04992e93322c1c8e14223f6a605937fea256afdf.zip |
make sure the changelog section's trailer points to the person invoking git-dch
-rwxr-xr-x | git-dch | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |