]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_text.t
t/feed: remove useless $ENV{GIT_DIR} assignment
[public-inbox.git] / t / psgi_text.t
index 7cb7a165cdc226998935f35a8eee8bf506baa5dd..77fc9ee2dac45dd4b1782f962d803d345876e0cf 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2020 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -21,7 +21,7 @@ my $config = PublicInbox::Config->new(\<<EOF);
 $cfgpfx.address=$addr
 $cfgpfx.inboxdir=$maindir
 EOF
-is(0, system(qw(git init -q --bare), $maindir), "git init (main)");
+PublicInbox::Import::init_bare($maindir);
 my $www = PublicInbox::WWW->new($config);
 
 test_psgi(sub { $www->call(@_) }, sub {