From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B8DA220300 for ; Sat, 2 Apr 2016 22:32:11 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] www: more explicit "git clone" usage Date: Sat, 2 Apr 2016 22:32:13 +0000 Message-Id: <20160402223213.8293-1-e@80x24.org> List-Id: Little harm in having the entire command-line for users and avoiding the cognitive overhead of figuring out $URL. --- lib/PublicInbox/WWW.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index 369be68..bb54aaa 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -277,12 +277,11 @@ sub footer { my $ssoma_url = PublicInbox::Hval::prurl($cgi->{env}, SSOMA_URL); if (scalar(@urls) == 1) { $urls = "URL for ssoma or git clone --mirror \$URL :) . - $urls[0]; + qq(">ssoma or git clone --mirror $urls[0]); } else { $urls = "URLs for ssoma or git clone --mirror \$URL\n) . - join("\n", map { "\t$_" } @urls); + qq(">ssoma or git clone --mirror\n) . + join("\n", map { "\tgit clone --mirror $_" } @urls); } my $addr = $ctx->{pi_config}->get($listname, 'address'); -- EW