about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/Inbox.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 64b12345..a1a072ad 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -133,8 +133,7 @@ sub new {
 sub version { $_[0]->{version} // 1 }
 
 sub git_epoch {
-        my ($self, $epoch) = @_;
-        $self->version == 2 or return;
+        my ($self, $epoch) = @_; # v2-only, callers always supply $epoch
         $self->{"$epoch.git"} ||= do {
                 my $git_dir = "$self->{inboxdir}/git/$epoch.git";
                 return unless -d $git_dir;