about summary refs log tree commit homepage
path: root/t/convert-compact.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-19 23:19:34 +0000
committerEric Wong <e@yhbt.net>2020-04-20 20:18:16 +0000
commitd55abcc42bde846d9047491125dd2b32645dafd8 (patch)
treea7dd9274b4790732aaa401757490919d3e8296b7 /t/convert-compact.t
parentb3a04ae18a42ed960c89cc81c209633da6976380 (diff)
downloadpublic-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/convert-compact.t')
-rw-r--r--t/convert-compact.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/convert-compact.t b/t/convert-compact.t
index 70609c7d..af16b701 100644
--- a/t/convert-compact.t
+++ b/t/convert-compact.t
@@ -20,8 +20,7 @@ my $ibx = {
         -primary_address => 'test@example.com',
 };
 
-ok(PublicInbox::Import::run_die([qw(git init --bare -q), $ibx->{inboxdir}]),
-        'initialized v1 repo');
+PublicInbox::Import::init_bare($ibx->{inboxdir});
 ok(umask(077), 'set restrictive umask');
 ok(PublicInbox::Import::run_die([qw(git) , "--git-dir=$ibx->{inboxdir}",
         qw(config core.sharedRepository 0644)]), 'set sharedRepository');