my $git_dir = "$tmpdir/a.git";
{
- is(system(qw(git init -q --bare), $git_dir), 0, 'git init ok');
my $git = PublicInbox::Git->new($git_dir);
my $im = PublicInbox::Import->new($git, 'testbox', 'test@example');
+ $im->init_bare;
$im->add(Email::MIME->create(
header => [
From => 'a@example.com',
body => "hello world\n",
));
$im->done;
- is(system(qw(git --git-dir), $git_dir, 'fsck', '--strict'), 0, 'git fsck ok');
+ is(xsys(qw(git --git-dir), $git_dir, 'fsck', '--strict'), 0,
+ 'git fsck ok');
}
done_testing();