mirroring instructions on how to clone and mirror
+all data and code used by this external index.
EOF
- my @nntp = map { qq($_) } @{$ibx->nntp_url};
- if (@nntp) {
- $urls .= @nntp == 1 ? 'Newsgroup' : 'Newsgroups are';
- $urls .= ' available over NNTP:';
- $urls .= "\n\t" . join("\n\t", @nntp) . "\n";
+ } elsif ($ctx->{git}) { # coderepo
+ $x = join('', map { "git clone $_\n" }
+ @{$ctx->{git}->cloneurl($ctx->{env})});
}
- if ($urls =~ m!\b[^:]+://\w+\.onion/!) {
- $urls .= " note: .onion URLs require Tor: ";
- $urls .= qq[$TOR_URL];
- }
- '
'.join("\n\n",
- $desc,
- $urls,
- coderepos($ctx),
- code_footer($ctx->{env})
- ).'