We can use git short commit date format $cs. Maybe it was not available
when podwrapper.pl was create.

Signed-off-by: Nir Soffer <[email protected]>
---
 podwrapper.pl.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/podwrapper.pl.in b/podwrapper.pl.in
index 9b39d7c..86ef452 100755
--- a/podwrapper.pl.in
+++ b/podwrapper.pl.in
@@ -233,8 +233,7 @@ my $date;
 my $filename = "$abs_top_srcdir/.git";
 if (!$date && -d $filename) {
     local $ENV{GIT_DIR} = $filename;
-    $_ = `git show -O/dev/null -s --format=%ci`;
-    $date = $1 if /^(\d+-\d+-\d+)\s/;
+    $date = `git show -O/dev/null -s --format=%cs`;
 }
 if (!$date) {
     my ($day, $month, $year) = (gmtime($ENV{SOURCE_DATE_EPOCH} || 
time))[3,4,5];
-- 
2.31.1

_______________________________________________
Libguestfs mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to