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

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