Bug in cgit
hjemli at gmail.com
Tue Jun 14 13:45:53 CEST 2011
[added cgit mailing list to CC]
On Thu, May 19, 2011 at 13:53, Dmitriy Kruglikov
<dmitriy.kruglikov at gmail.com> wrote:
> If the file /etc/cgitrc provide remove-suffix=1,
> then the repository list looks nice,
> but the clone URL is created without the suffix (.git).
This is an inherent problem with the clone-prefix option, but I've
finally been able to create a work-around.
If you use the latest master from hjemli.net/git/cgit, you'll see that
we now support the option clone-url (which works as a template for
repo.clone-url), i.e. you can literally specify
in /etc/cgitrc, and the $CGIT_REPO_URL part will then be replaced by
the (relative) url generated for the repo during scan-path processing.
See http://hjemli.net/git/cgit/tree/cgitrc.5.txt for further details,
especially the "FILTER API" section which enumerates the various
tokens you can use in the clone-url template.
More information about the CGit