]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_mount.t
import: init_bare: allow use as method, use in tests
[public-inbox.git] / t / psgi_mount.t
index 8cac3502310c75a78930bdb910e2286f39faed14..3afb1fb59e7251850570729a9c9e9b601983ea6b 100644 (file)
@@ -21,9 +21,9 @@ 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)");
 my $git = PublicInbox::Git->new($maindir);
 my $im = PublicInbox::Import->new($git, 'test', $addr);
+$im->init_bare;
 {
        my $mime = Email::MIME->new(<<EOF);
 From: Me <me\@example.com>