Remove a few loops in cgit for a large number of repos.

Michael Hess mlhess at
Thu Oct 10 16:44:55 CEST 2013

Hi Everyone,

I am looking into using cgit for's repos, and wondering if we
could remove code like this:

We have almost 10,000 repos and are worried about the load from loops, and
building the index it loops over. All of the repos are under a directory
(in 2 different sub directories), so I was hoping we could just validate
the directory path (making sure someone is not trying to do a ../../,etc)
and allow it?

Could that be done?  Please let me know your thoughts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the CGit mailing list