]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_mount.t
t/feed: remove useless $ENV{GIT_DIR} assignment
[public-inbox.git] / t / psgi_mount.t
index d29df054586d477fb598558a82adcd065340c500..3afb1fb59e7251850570729a9c9e9b601983ea6b 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;
 {
        my $mime = Email::MIME->new(<<EOF);
 From: Me <me\@example.com>