summaryrefslogtreecommitdiff
path: root/build-aux/gitlog-to-changelog
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-12-30 19:00:49 +0100
committerJim Meyering <meyering@redhat.com>2012-01-02 10:44:14 +0100
commiteeb61e0de5ab19b591f121170e7c66f3d6a5790a (patch)
tree1e93c9aa186ef60db4857bf8a74b13f1b522c312 /build-aux/gitlog-to-changelog
parent436bc23a809a90093c4a3e6e506039b0492ef3eb (diff)
downloadgnulib-eeb61e0de5ab19b591f121170e7c66f3d6a5790a.tar.gz
gitlog-to-changelog: don't malfunction when name contains %-directive
* build-aux/gitlog-to-changelog (main): Don't let a %-directive in a name string cause trouble. E.g., with a user name of "%s", gitlog-to-changelog would fail with "Missing argument in sprintf at..."
Diffstat (limited to 'build-aux/gitlog-to-changelog')
-rwxr-xr-xbuild-aux/gitlog-to-changelog6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog
index 3142ccae8e..c3434a9ee3 100755
--- a/build-aux/gitlog-to-changelog
+++ b/build-aux/gitlog-to-changelog
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
if 0;
# Convert git log output to ChangeLog format.
-my $VERSION = '2011-12-30 17:43'; # UTC
+my $VERSION = '2011-12-30 17:48'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
@@ -255,8 +255,8 @@ sub parse_amend_file($)
my $tiny = (grep (/^Copyright-paperwork-exempt:\s+[Yy]es$/, @line)
? ' (tiny change)' : '');
- my $date_line = sprintf "%s $2$tiny\n",
- strftime ("%F", localtime ($1));
+ my $date_line = sprintf "%s %s$tiny\n",
+ strftime ("%F", localtime ($1)), $2;
my @coauthors = grep /^Co-authored-by:.*$/, @line;
# Omit meta-data lines we've already interpreted.