podwrapper: Fix setting of GIT_DIR in git subcommand.

This fixes commit 1e17a32060.
This commit is contained in:
Richard W.M. Jones
2012-07-19 16:08:45 +01:00
parent 805d642565
commit f514d462cd

View File

@@ -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) {