From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EC3BF1F4C4 for ; Wed, 16 Oct 2019 11:14:51 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/3] doc: avoid [] arg for git-clone(1) Date: Wed, 16 Oct 2019 11:14:51 +0000 Message-Id: <20191016111451.32255-4-e@80x24.org> In-Reply-To: <20191016111451.32255-1-e@80x24.org> References: <20191016111451.32255-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: While it is possible to host source code from the root of a URL using git-http-backend(1), the lack of pathname in the URL can also be confusing to users. So just add the path name of the project into the URL itself so users can invoke "git clone" with one command-line argument instead of two. Of course, previously documented URLs continue to work as normal. --- AUTHORS | 2 +- Documentation/dc-dlvr-spam-flow.txt | 2 +- README | 4 ++-- lib/PublicInbox/WwwStream.pm | 5 ++--- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/AUTHORS b/AUTHORS index 1ad02cd8..46ca20cc 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,6 +1,6 @@ This list only includes major contributors. -See history in git (via `git clone https://public-inbox.org/public-inbox') +See history in git (via `git clone https://public-inbox.org/public-inbox.git') for a full history of the project. * Eric Wong (BDFL) diff --git a/Documentation/dc-dlvr-spam-flow.txt b/Documentation/dc-dlvr-spam-flow.txt index 81aba766..d151d272 100644 --- a/Documentation/dc-dlvr-spam-flow.txt +++ b/Documentation/dc-dlvr-spam-flow.txt @@ -45,4 +45,4 @@ delivery path as well as removing the message from the git tree. * spamc / spamd - SpamAssassin: http://spamassassin.apache.org/ * report-spam / dc-dlvr - distributed with public-inbox in the scripts/ - directory: git clone https://public-inbox.org/ public-inbox + directory: git clone https://public-inbox.org/public-inbox.git diff --git a/README b/README index ffd433d8..f62a7e40 100644 --- a/README +++ b/README @@ -91,8 +91,8 @@ Hacking AGPL source code is available via git: - git clone https://public-inbox.org/ public-inbox - git clone git://repo.or.cz/public-inbox + git clone https://public-inbox.org/public-inbox.git + git clone https://repo.or.cz/public-inbox.git torsocks git clone http://hjrcffqmbrq6wope.onion/public-inbox See below for contact info. diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm index f5338c39..06c8f7d2 100644 --- a/lib/PublicInbox/WwwStream.pm +++ b/lib/PublicInbox/WwwStream.pm @@ -11,8 +11,7 @@ use strict; use warnings; use PublicInbox::Hval qw(ascii_html); our $TOR_URL = 'https://www.torproject.org/'; -our $CODE_URL = 'https://public-inbox.org/'; -our $PROJECT = 'public-inbox'; +our $CODE_URL = 'https://public-inbox.org/public-inbox.git'; # noop for HTTP.pm (and any other PSGI servers) sub close {} @@ -80,7 +79,7 @@ sub _html_top ($) { sub code_footer ($) { my ($env) = @_; my $u = PublicInbox::Hval::prurl($env, $CODE_URL); - qq(AGPL code for this site: git clone $u $PROJECT) + qq(AGPL code for this site: git clone $u) } sub _html_end {