Gitolite permissions on branches

前端 未结 2 666
感动是毒
感动是毒 2020-12-08 12:13

I\'m really at a loss here. I\'ve read through quite a few examples, and tried all of them. The most basic ones work fine, but anytime I try to move to something a bit more

相关标签:
2条回答
  • 2020-12-08 12:35

    My config, that is working now:

    @gatekeepers = ustimenko
    @developers  = ustimenko user1 user2
    @deployers   = puppet
    
    @project     = repo1
    @project     = cakephp
    
    repo @project
        RW+                 = @gatekeepers  
        R   master develop  = @developers
        -   master develop  = @developers
        RW+                 = @developers
        R                   = @deployers
    

    1. Gatekeepers have full access.
    2. Developers can read master and develop branches, then they denied other actions there.
    3. Developers can do all other things.
    4. Deployers can read all.
    0 讨论(0)
  • 2020-12-08 12:54

    Hmm i have looked in the documentation. And tried it here.

    @anything is for a group of users or other groups. What you try there is not correct. You can't use the "@" operator as variable sign. Documentation of Groups

    repo    dawebsite
        RW+                 =   @vets
        -   branch1         =   @scrubs
        RW+                 =   @scrubs
        R   branch1         =   @scrubs
        R                   =   daemon
        option deny-rules = 1
    

    Gitolite permissions

    0 讨论(0)
提交回复
热议问题