aboutsummaryrefslogtreecommitdiffstats
path: root/lib/LXRng/Repo/Git.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LXRng/Repo/Git.pm')
-rw-r--r--lib/LXRng/Repo/Git.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/LXRng/Repo/Git.pm b/lib/LXRng/Repo/Git.pm
index 261f595..472c4c9 100644
--- a/lib/LXRng/Repo/Git.pm
+++ b/lib/LXRng/Repo/Git.pm
@@ -13,9 +13,10 @@ sub _git_cmd {
my $git;
my $pid = open($git, "-|");
die $! unless defined $pid;
+ # warn("git --git-dir=".$$self{'root'}." $cmd @args");
+
if ($pid == 0) {
- $ENV{'GIT_DIR'} = $$self{'root'};
- exec('git', $cmd, @args);
+ exec('git', '--git-dir='.$$self{'root'}, $cmd, @args);
warn $!;
kill(9, $$);
}