about summary refs log tree commit homepage
path: root/t/v2writable.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-15 11:26:17 +0000
committerEric Wong <e@80x24.org>2021-09-15 17:44:11 +0000
commit375b3ccfd3ca978281cb3869b62fc91eebc60d6e (patch)
tree057ef3935df6a56a3de4ecccf36f4f6537a0749b /t/v2writable.t
parent311c711c56e8ba829d0efaf43a8910c904089707 (diff)
downloadpublic-inbox-375b3ccfd3ca978281cb3869b62fc91eebc60d6e.tar.gz
IMHO, this greatly improves code sharing and organization
between v2, extindex, and lei/store.  Common git-related
logic for these is lightly-refactored and easier to reason
about.

The impetus for this big change was to ensure inboxes
created+managed by public-inbox-{clone,fetch} could have
alternates and configs setup properly without depending on
SQLite (via V2Writable).  This change does that while
making old code shorter and better factored.
Diffstat (limited to 't/v2writable.t')
-rw-r--r--t/v2writable.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index d9e7b980..477621e2 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -308,7 +308,7 @@ ok($@, 'V2Writable fails on non-existent dir');
         open $fh, '<', $alt or die $!;
         my $before = do { local $/; <$fh> };
 
-        ok($v2w->git_init(3), 'init a new epoch');
+        ok($v2w->{mg}->add_epoch(3), 'init a new epoch');
         open $fh, '<', $alt or die $!;
         my $after = do { local $/; <$fh> };
         ok(index($after, $before) > 0,