On Fri, May 4, 2012 at 2:29 PM, Andreas Stenius <
g...@astekk.se> wrote:
> Hi Sitaram,
>
> Why is repos that have gitweb. config keys included in the
> projects.list even if access gitweb R any says DENIED?
>
> I can easily fix this in my case - am just curious what the reasoning
> behind this or'ing behaviour is.
Because I consider having *any* gitweb config for a repo to mean
it is meant to be visible to gitweb.
> Or, if there's a better way to fix this in the config, that would be
> even better than me patching the code.
In g3, *everything* except src/gitolite, src/gitolite-shell, and
stuff under src/lib, is considered non-core. Feel free to
mangle it how you want. For example, one way to deal with this
would be:
- copy src/triggers/post-compile/update-gitweb-access-list as
src/triggers/post-compile/update-gitweb-access-list.local
- edit it to add a " | grep -v gitolite-admin " just before
the "> $plf"
- edit the rc file to replace lines containing
'post-compile/update-gitweb-access-list', with
'post-compile/update-gitweb-access-list.local',
> repo gitolite-admin
> RW+ = kaos
> - = gitweb
> option deny-rules = 1
>
> repo [a-zA-Z0-9].*
> C = kaos
> RW+ = kaos
> R = gitweb
> owner = Andreas Stenius
Well you could add these lines at the end:
repo gitolite-admin
config gitweb.owner =
But there was a bug in dealing with that, which I have just
fixed and pushed so you will have to upgrade if you want to use
that method.
> The easiest way that I see is to patch the update-gitweb-access-list
> post-compile trigger to not include projects with a gitweb config
> option. Just want to check if I'm overlooking something here, hence my
> initial question at the top.
That's even more aggressive than what I suggested, but the only
file that is writing is projects.list so clearly it won't affect
anything *else*.
It's your call; go for it!