Gitolite VREF/NAME-禁止推送的内容 [英] Gitolite VREF/NAME - what not to push

查看:82
本文介绍了Gitolite VREF/NAME-禁止推送的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让我停止特定组的成员进行包含非指定ant文件的提交

Is it possible to for me to stop members specific group be able to do commit containing ant file other than specified

示例

阻止@legal推送包含非static/html/legal.html文件的提交

Stop @legal from pushing commits which contains file other than static/html/legal.html



RWC refs/heads/master = @legal
-   VREF/NAME/static/html/[^legal.html]$   =    @legal

推荐答案

正如我在"对于@all?"用户的例外,访问规则遵循规则的积累.

在您的情况下,您可以授予所有人的读取访问权限,并拒绝除一个文件之外的@legal目录.诸如此类(未经测试):

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.

这篇关于Gitolite VREF/NAME-禁止推送的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆