如何在gitolite2中只读取分支?

时间:2012-06-06 16:24:50

标签: git configuration authorization gitolite

如何在gitolite v2中声明分支readonly?

我目前的配置是:

@group1 = user1 user2
@group2 = user3

repo xxx
    R          = @group1  # should make everything readonly per default
    RW  fix    = @group1  # this can be pushed and created
    RW+        = @group2  # for the admin

但每个人都可以到处推动。


另外2个案例 - 作为user2我被锁定在这里(正确的):

repo xxx
    R          = @group1  # should make everything readonly per default
    RW+        = @group2  # for the admin

现在我可以推送 master ,它不应该是:

repo xxx
    R          = @group1  # should make everything readonly per default
    RW  fix    = @group1  # this can be pushed and created
    RW+        = @group2  # for the admin

我用 ^ refs / heads / fix 替换了修复,但没有任何改变。

0 个答案:

没有答案