简体   繁体   English

Gerrit远程分支机构所有权

[英]Gerrit remote branch ownership

I have been using Gerrit for a while now however I could not figure out somthing about remote branches. 我已经使用Gerrit一段时间了,但是我对远程分支一无所知。

I would like to set Gerrit settings so each person that uses the repository may create a new remote branch in Gerrit and in addition, only that person will be granted owner permission to that specific branch. 我想设置Gerrit设置,以便使用存储库的每个人都可以在Gerrit中创建一个新的远程分支,此外,只有该人才能被授予对该特定分支的所有者权限。

With that for example, he will be able to force push only to that branch. 例如,使用此功能,他将只能强制推送到该分支。

I hope this is possible and someone will be able to explain me how to do it. 我希望这是可能的,并且有人能够向我解释如何做。

Thanks 谢谢

You can use ${username} as variable in ACLs, see the sandbox examples here . 您可以在ACL中将${username}用作变量,请参见此处的沙盒示例。

This would allow you to provide defined refs/branches that contain special permissions for every user (eg refs/heads/${username}/* to allow branches in the form of username/whatever ) 这将允许您提供定义的ref /分支,其中包含每个用户的特殊权限(例如refs/heads/${username}/*允许使用username/whatever形式的分支)

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

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