简体   繁体   English

将所有Gerrit存储库设为只读

[英]Make all Gerrit Repositories Read only

I need to find a way to make all Repositories within gerrit "read only", without having to do each one individually. 我需要找到一种方法,使gerrit内的所有存储库都为“只读”,而不必单独进行每个存储库。

Any help will be much appreciated. 任何帮助都感激不尽。

Just set "ALLOW Read" in "refs/*" reference for "Anonymous Users" group (all users signed in or not) or "Registered Users" group (all signed in users) at the "All Projects" project and set "Rights Inherit From" to "All Projects" for all repositories in Gerrit. 只需在“所有项目”项目的“匿名用户”组(所有已登录或未登录的用户)或“注册用户”组(所有已登录的用户)的“ refs / *”参考中设置“允许读取”,然后设置“权限” Gerrit中所有存储库的“继承自”到“所有项目”。

To change project permissions go to: Projects > List > Select-the-project > Access 要更改项目权限,请转到:项目>列表>选择项目>访问

Here you find more details about permissions. 在这里,您可以找到有关权限的更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM