gitolite-admin.conf doesn't work

我与影子孤独终老i 提交于 2019-12-08 08:04:25

问题


I was set git server with gitolite and I have finished it Now. But One question truble me. I am set gitolite with both ssh and http mode.

I use the gitolite-admin.conf to control the repo and user's auth. I followed the instruction: modify the conf, git add it, git commit it and git push it. But It does't work.

In Client I can't clone the new repo I have add in the conf

this is my conf

the default repo 'testing' is working regularly


回答1:


That is because gitolite honors gitolite.conf very strictly. You need to specify these lines in the conf file

repo @all
     RW+    =    @all

This will allow you to do operations on all the repos. But, you need to understand that when you specify @all in repo section, that means every repo falls in this rule. So, even if you have something like this in the file:

repo foo
     R      =     xyz

gitolite ignores it because it sees that the repo foo belongs to @all. So, in order for clone operation to work, you need to specify READ permission to all the repos, something like this:

repo @all
     R      =    @all

And then you need to add all the permissions to the other repos as well, otherwise you will only be allowed to read the other repos and not write them.



来源:https://stackoverflow.com/questions/34897418/gitolite-admin-conf-doesnt-work

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