]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_attach.t
doc: txt2pre: fix URL of git-filter-repo(1)
[public-inbox.git] / t / psgi_attach.t
index 1ef5318cd4799aab1a5469b7884572acaa4faae4..a47f37540215a8efabca2d9254a114df5442f016 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,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;
 
 {
        open my $fh, '<', '/dev/urandom' or die "unable to open urandom: $!\n";