From: Eric Wong Date: Mon, 23 May 2016 01:14:32 +0000 (+0000) Subject: t/config.t: remove GIT_DIR usage in test X-Git-Tag: v1.0.0~503 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=be5bef0258b12a249f947b49f23c08f42b1741e3;p=public-inbox.git t/config.t: remove GIT_DIR usage in test Followup-to: commit 24e0219f364ed402f9136227756e0f196dc651aa ("remove GIT_DIR env usage in favor of --git-dir") --- 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");