Blame SOURCES/0027-Fix-podwrapper.pl.in-Use-short-commit-date.patch

6661d0
From 38948544e6e12091506b658ab10ff1b0a5bf36b5 Mon Sep 17 00:00:00 2001
e7ca0c
From: Eric Blake <eblake@redhat.com>
e7ca0c
Date: Tue, 30 Nov 2021 12:42:01 -0600
e7ca0c
Subject: [PATCH] Fix "podwrapper.pl.in: Use short commit date"
e7ca0c
e7ca0c
This reverts commit 750ad5972bb082d188f17f8f71ef1ec0c616c676, then
e7ca0c
fixes the broken newline as suggested in the thread at
e7ca0c
https://listman.redhat.com/archives/libguestfs/2021-November/msg00275.html.
e7ca0c
e7ca0c
(cherry picked from commit 80036dbb0b8f9e0aab5994d80de6321c2a55c669)
e7ca0c
---
e7ca0c
 podwrapper.pl.in | 3 +--
e7ca0c
 1 file changed, 1 insertion(+), 2 deletions(-)
e7ca0c
e7ca0c
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
e7ca0c
index abad578d..6f256ba8 100755
e7ca0c
--- a/podwrapper.pl.in
e7ca0c
+++ b/podwrapper.pl.in
e7ca0c
@@ -233,8 +233,7 @@ my $date;
e7ca0c
 my $filename = "$abs_top_srcdir/.git";
e7ca0c
 if (!$date && -d $filename) {
e7ca0c
     local $ENV{GIT_DIR} = $filename;
e7ca0c
-    $_ = `git show -O/dev/null -s --format=%ci`;
e7ca0c
-    $date = $1 if /^(\d+-\d+-\d+)\s/;
e7ca0c
+    $date = `git show -O/dev/null -s --format=format:%cs`;
e7ca0c
 }
e7ca0c
 if (!$date) {
e7ca0c
     my ($day, $month, $year) = (gmtime($ENV{SOURCE_DATE_EPOCH} || time))[3,4,5];
e7ca0c
-- 
e7ca0c
2.31.1
e7ca0c