mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
podwrapper: Fix setting of GIT_DIR in git subcommand.
This fixes commit 1e17a32060.
This commit is contained in:
@@ -199,7 +199,8 @@ if (-r $filename) {
|
||||
}
|
||||
$filename = "$abs_top_srcdir/.git";
|
||||
if (!$date && -d $filename) {
|
||||
$_ = `git show --git-dir=$filename -s --format=%ci`;
|
||||
local $ENV{GIT_DIR} = $filename;
|
||||
$_ = `git show -s --format=%ci`;
|
||||
$date = $1 if /^(\d+-\d+-\d+)\s/;
|
||||
}
|
||||
if (!$date) {
|
||||
|
||||
Reference in New Issue
Block a user