Gitolite VREF/NAME - what not to push

心不动则不痛 提交于 2019-12-06 15:47:55
VonC

As I explained in "In gitolite, any easier way to create exceptions to users of @all?", the access rules follow a rule of accumulation.

In your case, you could grant read-access for all, and deny a directory for @legal, except for one file. Something like (not tested):

RW  refs/heads/master                 = @all
-   VREF/NAME/static/html             =    @legal
RW  VREF/NAME/static/html/legal.thml  =    @legal

The idea is for a more specific rule to override a more generic one.

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