summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpodwrapper.pl.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/podwrapper.pl.in b/podwrapper.pl.in
index 08001788..e4c39586 100755
--- a/podwrapper.pl.in
+++ b/podwrapper.pl.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) {