gitolite + gitweb | 'repo @all R = gitweb' not working

亡梦爱人 提交于 2019-12-08 07:27:16

问题


For some reason the following gitolite.conf does not add any repository to projects.list. When I set 'R = gitweb' for each repository manually, they get added to projects.list.

[....]

repo aaa
repo bbb

repo @all
    RW+ = @admins
    R = gitweb

[...]

Any hints for me? I'd really like to allow gitweb access to all repositories and then remove permissions for a single repositories via '- = gitweb' ...


回答1:


I don't actually need gitweb rules or project.list to be complete in my gitweb setup:
I only make sure I have a gitweb.conf.pl which:

  • will be called by gitweb (through the gitweb_config.perl file, called if gitweb detects it exists)
  • will call gitolite to see if the access to a repo can be granted or should be denied.



回答2:


I just ran into the similar problem, but the resolution was different :

In gitolite3, it seems that if you simply see a gitweb.* property, then your repository is gitweb enabled:

repo foobar
  desc = "Foobar repository"
  category = "foobar"
  Rw+= myself

Or if you prefer :

repo foobar
  config gitweb.description = "Foobar repository"
  config gitweb.category = "foobar"
  Rw+= myself

I don't know if it works with a @all, like:

repo @all
  category= "uncategorized"

But since a description or (valid) category is not a bad thing to have, I'd say it works for me.

On the other hand, I tried also making an @almost-all group with all my repositories except gitolite-admin, except I don't know if it works because of gitweb.description/category config.



来源:https://stackoverflow.com/questions/14718646/gitolite-gitweb-repo-all-r-gitweb-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!