Blame SOURCES/0026-Revert-podwrapper.pl.in-Use-short-commit-date.patch

5c4a8e
From b986f25be4f013eb02cd327826fa225c8202571e Mon Sep 17 00:00:00 2001
5c4a8e
From: "Richard W.M. Jones" <rjones@redhat.com>
5c4a8e
Date: Sat, 20 Nov 2021 17:50:25 +0000
5c4a8e
Subject: [PATCH] Revert "podwrapper.pl.in: Use short commit date"
5c4a8e
5c4a8e
This commit breaks man page output because there is an extra newline
5c4a8e
after the date which wasn't being removed.
5c4a8e
5c4a8e
This reverts commit 7a1e79c6b5ca4adcef47fc0929d25d54610fc417.
5c4a8e
5c4a8e
(cherry picked from commit 750ad5972bb082d188f17f8f71ef1ec0c616c676)
5c4a8e
---
5c4a8e
 podwrapper.pl.in | 3 ++-
5c4a8e
 1 file changed, 2 insertions(+), 1 deletion(-)
5c4a8e
5c4a8e
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
5c4a8e
index 63c1025a..abad578d 100755
5c4a8e
--- a/podwrapper.pl.in
5c4a8e
+++ b/podwrapper.pl.in
5c4a8e
@@ -233,7 +233,8 @@ my $date;
5c4a8e
 my $filename = "$abs_top_srcdir/.git";
5c4a8e
 if (!$date && -d $filename) {
5c4a8e
     local $ENV{GIT_DIR} = $filename;
5c4a8e
-    $date = `git show -O/dev/null -s --format=%cs`;
5c4a8e
+    $_ = `git show -O/dev/null -s --format=%ci`;
5c4a8e
+    $date = $1 if /^(\d+-\d+-\d+)\s/;
5c4a8e
 }
5c4a8e
 if (!$date) {
5c4a8e
     my ($day, $month, $year) = (gmtime($ENV{SOURCE_DATE_EPOCH} || time))[3,4,5];
5c4a8e
-- 
5c4a8e
2.31.1
5c4a8e