]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/WwwStream.pm
git: allow cloning from the URL root, too
[public-inbox.git] / lib / PublicInbox / WwwStream.pm
index 97a6dc78815b1e5e4734a855303c1cf9c00948bf..87a461e18b831744535f93f5e4e2b8ce2bc2f4ae 100644 (file)
@@ -7,7 +7,7 @@ use strict;
 use warnings;
 use PublicInbox::Hval qw(ascii_html);
 use URI;
-use constant PI_URL => 'https://public-inbox.org/public-inbox.git';
+use constant PI_URL => 'https://public-inbox.org/';
 
 sub new {
        my ($class, $ctx, $cb) = @_;
@@ -87,7 +87,7 @@ sub _html_end {
                '- ' . $desc,
                $urls,
                'Archived served using code from public-inbox:',
-               "\tgit clone $url",
+               "\tgit clone <a\nhref="$url">$url</a> public-inbox",
        ).'</pre></body></html>';
 }