Followup-to: commit 24e0219f364ed402f9136227756e0f196dc651aa
("remove GIT_DIR env usage in favor of --git-dir")
{
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");