diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-19 16:08:45 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-05 22:48:51 +0100 |
commit | e6bc31ca8b0c96ef5a717f8efa5e9161fb4cd8a7 (patch) | |
tree | 7278c53676a6133284e6d1bd453354adac53ff7d | |
parent | 310e232a1e22d718fae0e4e8c2f09af299bf6598 (diff) | |
download | libguestfs-e6bc31ca8b0c96ef5a717f8efa5e9161fb4cd8a7.tar.gz libguestfs-e6bc31ca8b0c96ef5a717f8efa5e9161fb4cd8a7.tar.xz libguestfs-e6bc31ca8b0c96ef5a717f8efa5e9161fb4cd8a7.zip |
podwrapper: Fix setting of GIT_DIR in git subcommand.
This fixes commit 1e17a32060feb937b3972f61b37f9116ad7d8d9a.
(cherry picked from commit f514d462cda5395c8614577930ee69eebafc969d)
-rwxr-xr-x | podwrapper.pl.in | 3 |
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) { |