拒绝使用gitolite读取特定的存储库分支 [英] Deny READ of specific repository branches with gitolite

查看:95
本文介绍了拒绝使用gitolite读取特定的存储库分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要达到的是:
同事在@coworkers组中,
客户在@clients组中。

What I'm trying to achieve is the following: coworkers are in group @coworkers, clients are in group @clients.

Git回购可供所有人阅读和写入,但应有特殊分支。
即我创建了一个新的分支实习生,@coworkers将拥有RW +权限,但客户端应该无法使用R或W。

我以为我可以通过

The Git repo shall be available to read and write for everyone, but there shall be special branches. i.e. I create a new branch "intern" and @coworkers shall have RW+ acces, but clients should NOT be able to R or W.

I thought i can achieve that by 

但这并不奏效。

repo myrepo - intern = @clients RW+ = @clients @coworkers

推荐答案

根据讨论

解决方案

a>和gitolite的作者一样,阅读访问限制对分支是不可能的:

According to a discussion with the author of gitolite, read access restriction is not possible for branches:


Gitolite的每个分支的东西只能用于写入访问。它
不适用于读取访问,因为git本身不支持
作为区分。

Gitolite's per-branch stuff works only for write access. It doesn't work for read access because git itself does not support making that distinction.

这篇关于拒绝使用gitolite读取特定的存储库分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆