]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: document "git clone --mirror" usage
authorEric Wong <e@80x24.org>
Sat, 13 Feb 2016 23:20:20 +0000 (23:20 +0000)
committerEric Wong <e@80x24.org>
Sat, 13 Feb 2016 23:20:20 +0000 (23:20 +0000)
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

index 95dfcbf03fad97c9810deee50e290ad37f003af2..77910f671d3979e17de6e3345bb99fb9068b1402 100644 (file)
@@ -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 <a\nhref=\"" . SSOMA_URL .
-                       '">ssoma</a>: ' . $urls[0];
+               $urls = "URL for <a\nhref=\"" . SSOMA_URL .
+                       qq(">ssoma</a> or <b>git clone --mirror \$URL</b> :) .
+                       $urls[0];
        } else {
-               $urls = "git URLs for <a\nhref=\"" . SSOMA_URL .
-                       "\">ssoma</a>:\n" . join("\n", map { "\t$_" } @urls);
+               $urls = "URLs for <a\nhref=\"" . SSOMA_URL .
+                       qq(">ssoma</a> or <b>git clone --mirror \$URL</b>\n) .
+                       join("\n", map { "\t$_" } @urls);
        }
 
        my $addr = $pi_config->get($listname, 'address');