]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_text.t
import: init_bare: allow use as method, use in tests
[public-inbox.git] / t / psgi_text.t
index 6d8a518df9003fa21fd8a0ff06b556e2d1f25ad9..77fc9ee2dac45dd4b1782f962d803d345876e0cf 100644 (file)
@@ -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 {