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/psgi_attach.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/psgi_attach.t')
-rw-r--r-- | t/psgi_attach.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/psgi_attach.t b/t/psgi_attach.t index 297e92e1..a47f3754 100644 --- a/t/psgi_attach.t +++ b/t/psgi_attach.t @@ -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"; |