如何在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 替换了修复,但没有任何改变。