From 2bc26fececd03705c68c1968f95a2d199bafec29 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 8 Oct 2022 08:24:45 +0000 Subject: www_coderepo: wire up snapshots from summary This also ensures we won't waste CPU cycles on snapshots which aren't configured if somebody attempts them by guessing URLs. --- lib/PublicInbox/Config.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/PublicInbox/Config.pm') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 5cdf182e..a430cd5c 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -325,6 +325,8 @@ sub parse_cgitrc { } elsif (m!\A(?:css|favicon|logo|repo\.logo)=(/.+)\z!) { # absolute paths for static files via PublicInbox::Cgit $self->{-cgit_static}->{$1} = 1; + } elsif (s!\Asnapshots=\s*!!) { + $self->{'coderepo.snapshots'} = $_; } } cgit_repo_merge($self, $repo->{dir}, $repo) if $repo; -- cgit v1.2.3-24-ge0c7