b5f8430a27
resolves: rhbz#2011709 Includes these important commits: plugins/python: Fix extents() count format string tests: Add configure --disable-libguestfs-tests flag tests: Use mke2fs -d to create ext4 test image Use new --disable-libguestfs-tests on non-guestfs arches.
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 913158a00a906604a29d204f25b048625d272597 Mon Sep 17 00:00:00 2001
|
|
From: Nir Soffer <nsoffer@redhat.com>
|
|
Date: Mon, 8 Nov 2021 19:47:57 +0200
|
|
Subject: [PATCH] podwrapper.pl.in: Use short commit date
|
|
|
|
We can use git short commit date format $cs. Maybe it was not available
|
|
when podwrapper.pl was created.
|
|
|
|
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
|
|
(cherry picked from libnbd commit 0306fdcb08e8dc5957a9e344b54200711fca1220)
|
|
(cherry picked from commit 7a1e79c6b5ca4adcef47fc0929d25d54610fc417)
|
|
---
|
|
podwrapper.pl.in | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
|
|
index abad578d..63c1025a 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
|
|
|