[RFC] Relocate repos when using scan-path

John Keeping john at keeping.me.uk
Sat May 18 17:10:06 CEST 2013

On Mon, May 13, 2013 at 03:56:13PM +0200, Florian Pritz wrote:
> Having now seen section-from-path now I think this feature is pretty
> useful, but to fully utilize it I'd have to move around some repos for a
> proper directory structure.
> Since I want to keep URLs working for existing clones I thought about
> placing symlinks in the old location, but then cgit will display each
> repo twice.
> Should there be an option to ignore symlinks, a (per repo) list of valid
> paths for the index or something else to keep cgit's index list clean?

I think what you want here is to return a "301 Moved Permanently"
response on the old URLs.  I considered adding this to CGit but I'm not
sure we should add yet more configuration options when this can already
be achieved with mod_rewrite or ngx_http_rewrite_module.

More information about the CGit mailing list