Removing subdirectories from scan-path
Christian Weiske
cweiske at cweiske.de
Mon Dec 29 18:11:18 UTC 2025
Hi,
I've been using gitweb until now and would like to switch to cgit for
performance reasons.
One problem that's been bothering me is that the directory given with
the "scan-path" option is recursively scanned, and all git repositories
below it are listed on the index page.
I'd like to exclude/hide all repositories inside the "paste/" directory,
because they already are published to the web with a different software.
They still shall be clonable, though - which is why they are in a
subdirectory of the scan-path.
gitweb allowed me to achieve this with the "$project_maxdepth" setting:
> # do not display "paste/" git repos
> $project_maxdepth = 1;
Is there some way to get the "paste" subdirectory excluded?
(Apart from manually filling a project-list file)
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-=≡ Geeking around in the name of science since 1982 ≡=-
More information about the CGit
mailing list