【问题标题】:gitolite can not limit user to access branchgitolite不能限制用户访问分支
【发布时间】:2021-06-08 09:21:15
【问题描述】:

我新建一个repository的分支,对该分支设置权限,只允许某个用户访问,结果要么用户可以访问所有分支(RW dev = user2),要么所有分支都不能访问(-master = user2),请帮帮我,指点迷宫。 . .仓库可以设置为只访问和修改某个分支

下面是我的配置:

@users  =  user2

repo gitolite-admin
    RW+     =   git1

repo testing
    RW+ master   =   git1

repo repo2
    -   master              =   @users

【问题讨论】:

    标签: gitolite


    【解决方案1】:

    仔细检查访问的含义:Gitolite 不能限制 read 访问(如果你能看到一个存储库,你会看到/clone/pull 所有的存储库)

    它可以限制访问(git push

    您可以使用separate repositories and partial copies 的组合,对分支进行选择性读取控制。
    请参阅example here

    你也可以restrict Gitolite VREF restrictions to only one branch?

    【讨论】:

      猜你喜欢
      • 2015-07-02
      • 2017-05-04
      • 1970-01-01
      • 2012-10-11
      • 1970-01-01
      • 2011-07-17
      • 2020-03-27
      • 2015-11-02
      • 1970-01-01
      相关资源
      最近更新 更多