1

I'm having a config file like this:

@all = @group1 @group2 @group3
@group1 = user1 user2 user3
@group2 = user4 user5 user6
@group3 = user7 user8 user9

repo production_repo
    RW+           = server_key
    R             = @all

    R group_branch1 = @group1
    R group_branch1_user1 = @group1
    RW group_branch1_user1 = user1

Problem is now that also i give just read rights to all users, everyone can write on the master branch. When i add a - master = @all as first line the result is the same.

How can i make master read-only to the @all group and give right permissions just on the users own featurebranch?

Thanks in advance.

4

2 回答 2

1

遵循“分支上的 Gitolite 权限”和gitolite 规则,您可以尝试:(
不幸的是,仅适用于 gitolite g3,这意味着g2 需要迁移

repo production_repo

    RW+           = server_key
    R     master  = @all
    -     master  = @all

    R group_branch1 = @group1
    R group_branch1_user1 = @group1
    RW group_branch1_user1 = user1
于 2013-04-17T11:55:24.093 回答
0

请设置

回购 foo
     拒绝规则 = 1
于 2013-05-06T12:19:20.657 回答