diff options
author | Eric Wong <e@80x24.org> | 2016-05-23 01:14:32 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-23 01:15:44 +0000 |
commit | be5bef0258b12a249f947b49f23c08f42b1741e3 (patch) | |
tree | 3f6aa7c96b4cbd3c07c6ef2798b67b2f17b89940 /t/config.t | |
parent | 462860480ac00a7958daa2a590bfdb5f4fde4147 (diff) | |
download | public-inbox-be5bef0258b12a249f947b49f23c08f42b1741e3.tar.gz |
Followup-to: commit 24e0219f364ed402f9136227756e0f196dc651aa ("remove GIT_DIR env usage in favor of --git-dir")
Diffstat (limited to 't/config.t')
-rw-r--r-- | t/config.t | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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"); |