about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwListing.pm
diff options
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2019-06-09 04:31:05 +0000
committerEric Wong <e@80x24.org>2019-06-09 04:32:31 +0000
commit0886c264b24b8bc7626e5a7eb59598b0229f066d (patch)
tree0091b2a341c4ff824cb564687c2533f8980b5a86 /lib/PublicInbox/WwwListing.pm
parent279a47f3f64fc7a414247922b870e58a0b334b0f (diff)
And use it in manifest.js.

To ease maintaining mirrors with grokmirror(1), we can accept
a "git/" directory prefix before the epoch, and ".git" suffix
after the epoch number.

We maintain compatibility with "$INBOX/$EPOCH" cloning, of
course, and it's still easier-to-type on the command-line.
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm
index 690976ac..e2724cc4 100644
--- a/lib/PublicInbox/WwwListing.pm
+++ b/lib/PublicInbox/WwwListing.pm
@@ -144,7 +144,7 @@ sub manifest_add ($$;$) {
         my $git_dir = $ibx->{mainrepo};
         if (defined $epoch) {
                 $git_dir .= "/git/$epoch.git";
-                $url_path .= "/$epoch";
+                $url_path .= "/git/$epoch.git";
         return unless -d $git_dir;
         my $git = PublicInbox::Git->new($git_dir);