diff options
author | Eric Wong <e@yhbt.net> | 2020-04-19 23:19:34 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-20 20:18:16 +0000 |
commit | d55abcc42bde846d9047491125dd2b32645dafd8 (patch) | |
tree | a7dd9274b4790732aaa401757490919d3e8296b7 /t/mda.t | |
parent | b3a04ae18a42ed960c89cc81c209633da6976380 (diff) | |
download | public-inbox-d55abcc42bde846d9047491125dd2b32645dafd8.tar.gz |
Allowing ->init_bare to be used as a method saves some keystrokes, and we can save a little bit of time on systems with our vfork(2)-enabled spawn(). This also sets us up for future improvements where we can avoid spawning a process at all.
Diffstat (limited to 't/mda.t')
-rw-r--r-- | t/mda.t | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9,6 +9,7 @@ use PublicInbox::MID qw(mid2path); use PublicInbox::Git; use PublicInbox::InboxWritable; use PublicInbox::TestCommon; +use PublicInbox::Import; my ($tmpdir, $for_destroy) = tmpdir(); my $home = "$tmpdir/pi-home"; my $pi_home = "$home/.public-inbox"; @@ -48,7 +49,7 @@ my $fail_bad_header = sub ($$$) { "spamc mock found (run in top of source tree"); is(1, mkdir($home, 0755), "setup ~/ for testing"); is(1, mkdir($pi_home, 0755), "setup ~/.public-inbox"); - is(0, system(qw(git init -q --bare), $maindir), "git init (main)"); + PublicInbox::Import::init_bare($maindir); open my $fh, '>>', $pi_config or die; print $fh <<EOF or die; |