通过命令行修改Gerrit分支访问 [英] Gerrit branch access modification through command line
本文介绍了通过命令行修改Gerrit分支访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将Gerrit上已停用的分支的访问规则从"ALLOW"更改为"DENY".我们有可用的命令行选项吗?
I would like to change the access rule for the deactivated branches on gerrit from "ALLOW" to "DENY".. do we have any command line options available for it ?
推荐答案
您可以使用refs/meta/config
伪分支通过Git协议来编辑访问权限.请参阅文档.
You can edit access rights through the Git protocol using the refs/meta/config
pseudo-branch. See the docs.
您检出该分支,修改project.config
并推回Gerrit服务器.这就是使它自动化的方法.
You checkout that branch, modify the project.config
and push back to the Gerrit server. That's how you can automate this.
这篇关于通过命令行修改Gerrit分支访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文