diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:05:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | e917c6756d4912046aa6ad5130f6873d1873ddc7 (patch) | |
tree | 4addddd13f1599fbc072ae8bb4579e868fe75d94 /lib/PublicInbox/Inbox.pm | |
parent | c118d783a22a2080964899266c91c1a1ac69f481 (diff) | |
download | public-inbox-e917c6756d4912046aa6ad5130f6873d1873ddc7.tar.gz |
manifest: use ibx->git_epoch method for v2
We can slightly reduce the amount of version-specific logic, here.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 1d18cdf1..64b12345 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -137,6 +137,7 @@ sub git_epoch { $self->version == 2 or return; $self->{"$epoch.git"} ||= do { my $git_dir = "$self->{inboxdir}/git/$epoch.git"; + return unless -d $git_dir; my $g = PublicInbox::Git->new($git_dir); $g->{-httpbackend_limiter} = $self->{-httpbackend_limiter}; # no cleanup needed, we never cat-file off this, only clone |