]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: more explicit "git clone" usage
authorEric Wong <e@80x24.org>
Sat, 2 Apr 2016 22:32:13 +0000 (22:32 +0000)
committerEric Wong <e@80x24.org>
Sat, 2 Apr 2016 22:33:58 +0000 (22:33 +0000)
Little harm in having the entire command-line for users and
avoiding the cognitive overhead of figuring out $URL.

lib/PublicInbox/WWW.pm

index 369be686173024b63013e1316f29652f9d15f6ef..bb54aaa623e4a7a79b8d96d63da7912fd1b343cc 100644 (file)
@@ -277,12 +277,11 @@ sub footer {
        my $ssoma_url = PublicInbox::Hval::prurl($cgi->{env}, SSOMA_URL);
        if (scalar(@urls) == 1) {
                $urls = "URL for <a\nhref=\"" . $ssoma_url .
-                       qq(">ssoma</a> or <b>git clone --mirror \$URL</b> :) .
-                       $urls[0];
+                       qq(">ssoma</a> or <b>git clone --mirror $urls[0]</b>);
        } else {
                $urls = "URLs for <a\nhref=\"" . $ssoma_url .
-                       qq(">ssoma</a> or <b>git clone --mirror \$URL</b>\n) .
-                       join("\n", map { "\t$_" } @urls);
+                       qq(">ssoma</a> or <b>git clone --mirror</b>\n) .
+                       join("\n", map { "\tgit clone --mirror $_" } @urls);
        }
 
        my $addr = $ctx->{pi_config}->get($listname, 'address');