]> Sergey Matveev's repositories - public-inbox.git/commitdiff
doc: avoid [<directory>] arg for git-clone(1)
authorEric Wong <e@80x24.org>
Wed, 16 Oct 2019 11:14:51 +0000 (11:14 +0000)
committerEric Wong <e@80x24.org>
Thu, 17 Oct 2019 07:45:35 +0000 (07:45 +0000)
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
Documentation/dc-dlvr-spam-flow.txt
README
lib/PublicInbox/WwwStream.pm

diff --git a/AUTHORS b/AUTHORS
index 1ad02cd8d3f5a3888c12dcf0ce0a29318ed7dce1..46ca20cceaffb114fc735c901bd956154425cfb5 100644 (file)
--- 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 <e@80x24.org> (BDFL)
index 81aba766ce8ffebc78369535ec73ed13bdfff487..d151d272d0aea390d6f08260ef06fe7a8ce738b6 100644 (file)
@@ -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 ffd433d8ee75fbb19a4c621b2643195f5cd60c54..f62a7e40a244fb5e4effd747af8fac4b9d8d6c49 100644 (file)
--- 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.
index f5338c39a67486d3569993d182b639c5ec6516bb..06c8f7d2c65ff87e16a682a466b6f5062446063b 100644 (file)
@@ -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 <a\nhref="$u">$u</a> $PROJECT)
+       qq(AGPL code for this site: git clone <a\nhref="$u">$u</a>)
 }
 
 sub _html_end {