[added cgit mailing list to CC] On Thu, May 19, 2011 at 13:53, Dmitriy Kruglikov <[email protected]> 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 clone-url=git://example.org/$CGIT_REPO_URL.git 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. hth -- larsh _______________________________________________ cgit mailing list [email protected] http://hjemli.net/mailman/listinfo/cgit
