summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-19 16:08:45 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-19 16:10:48 +0100
commitf514d462cda5395c8614577930ee69eebafc969d (patch)
tree50ed04c5fcc7fade6816295ce79ecbcc0290ece4
parent805d6425655abe1450567786ee4b887b23022a3c (diff)
downloadlibguestfs-f514d462cda5395c8614577930ee69eebafc969d.tar.gz
libguestfs-f514d462cda5395c8614577930ee69eebafc969d.tar.xz
libguestfs-f514d462cda5395c8614577930ee69eebafc969d.zip
podwrapper: Fix setting of GIT_DIR in git subcommand.
This fixes commit 1e17a32060feb937b3972f61b37f9116ad7d8d9a.
-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) {