From c8cb0460b462f935ee0d487f63c5eb9a0f23b438 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 13 Feb 2016 23:20:20 +0000 Subject: www: document "git clone --mirror" usage Not everybody is willing to install or run ssoma; but at least document "git clone --mirror" usage to promote data distribution. It's wasteful to clone without "--mirror", so we'll suggest that to avoid wasting disk space and inodes. --- lib/PublicInbox/WWW.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 95dfcbf0..77910f67 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -250,11 +250,13 @@ sub footer { $cgi->base->as_string . $listname; $seen{$http} or unshift @urls, $http; if (scalar(@urls) == 1) { - $urls = "git URL for ssoma: ' . $urls[0]; + $urls = "URL for ssoma or git clone --mirror \$URL :) . + $urls[0]; } else { - $urls = "git URLs for ssoma:\n" . join("\n", map { "\t$_" } @urls); + $urls = "URLs for ssoma or git clone --mirror \$URL\n) . + join("\n", map { "\t$_" } @urls); } my $addr = $pi_config->get($listname, 'address'); -- cgit v1.2.3-24-ge0c7