about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-16 11:14:51 +0000
committerEric Wong <e@80x24.org>2019-10-17 07:45:35 +0000
commitfdd53dc5496ceb7587065a0f0d368d7be1fd113d (patch)
treefa3d3bc965ed6c422bb3decb1a1a15dd0f732ea4 /lib/PublicInbox/WwwStream.pm
parent41f45d038aab6e14b74d5ef0d6836cbc7eabb03b (diff)
downloadpublic-inbox-fdd53dc5496ceb7587065a0f0d368d7be1fd113d.tar.gz
doc: avoid [<directory>] arg for git-clone(1)
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.
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r--lib/PublicInbox/WwwStream.pm5
1 files changed, 2 insertions, 3 deletions
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 <a\nhref="$u">$u</a> $PROJECT)
+        qq(AGPL code for this site: git clone <a\nhref="$u">$u</a>)
 }
 
 sub _html_end {