about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-13 23:20:20 +0000
committerEric Wong <e@80x24.org>2016-02-13 23:20:20 +0000
commitc8cb0460b462f935ee0d487f63c5eb9a0f23b438 (patch)
treec76a7210784a481771e15b887e8e89f4c49647d3 /lib
parent2de1bfa356eec660702cdf033bb22343bff137d3 (diff)
downloadpublic-inbox-c8cb0460b462f935ee0d487f63c5eb9a0f23b438.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/WWW.pm10
1 files changed, 6 insertions, 4 deletions
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 <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');