about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--t/config.t6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/config.t b/t/config.t
index 76f6065d..78971a2f 100644
--- a/t/config.t
+++ b/t/config.t
@@ -9,10 +9,8 @@ my $tmpdir = tempdir('pi-config-XXXXXX', TMPDIR => 1, CLEANUP => 1);
 
 {
         is(system(qw(git init -q --bare), $tmpdir), 0, "git init successful");
-        {
-                local $ENV{GIT_DIR} = $tmpdir;
-                is(system(qw(git config foo.bar hihi)), 0, "set config");
-        }
+        my @cmd = ('git', "--git-dir=$tmpdir", qw(config foo.bar hihi));
+        is(system(@cmd), 0, "set config");
 
         my $tmp = PublicInbox::Config->new("$tmpdir/config");