From e6bc31ca8b0c96ef5a717f8efa5e9161fb4cd8a7 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 19 Jul 2012 16:08:45 +0100 Subject: podwrapper: Fix setting of GIT_DIR in git subcommand. This fixes commit 1e17a32060feb937b3972f61b37f9116ad7d8d9a. (cherry picked from commit f514d462cda5395c8614577930ee69eebafc969d) --- podwrapper.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit