]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/feed.t
t/feed: remove useless $ENV{GIT_DIR} assignment
[public-inbox.git] / t / feed.t
index cfa09a7c68eae9549668c40b07589d8b20d6c3c4..7d01e3e6524c50c491690bc100e460c9abc3de18 100644 (file)
--- a/t/feed.t
+++ b/t/feed.t
@@ -34,9 +34,7 @@ my $git = $ibx->git;
 my $im = PublicInbox::Import->new($git, $ibx->{name}, 'test@example');
 
 {
-       is(0, system(qw(git init -q --bare), $git_dir), "git init");
-       local $ENV{GIT_DIR} = $git_dir;
-
+       $im->init_bare;
        foreach my $i (1..6) {
                my $mime = Email::MIME->new(<<EOF);
 From: ME <me\@example.com>