我已对All_Projects的project.config进行了更改。保存结果时,单击“保存以供审阅”(我不允许直接保存)。它工作正常,我在Gerrit得到一个评论,一切都很好。然后我设置代码审查+2,但后来我无法设置验证+1。 查看project.config文件时,它看起来像这样:
[access "refs/meta/config"]
exclusiveGroupPermissions = read
read = group Administrators
read = group Project Owners
push = group Administrators
push = group Project Owners
label-Code-Review = -2..+2 group Administrators
label-Code-Review = -2..+2 group Project Owners
submit = group Administrators
submit = group Project Owners
因此缺少验证的可能性。但由于我无法提交更改,因此我无法将其更改为此类
[access "refs/meta/config"]
exclusiveGroupPermissions = read
read = group Administrators
read = group Project Owners
push = group Administrators
push = group Project Owners
label-Code-Review = -2..+2 group Administrators
label-Code-Review = -2..+2 group Project Owners
submit = group Administrators
submit = group Project Owners
label-Verified = -1..+1 group Administrators
我该如何解决这个问题?
答案 0 :(得分:1)
您需要手动添加更改才能拥有“已验证”选项。您可以按照以下选项进行操作:
mkdir tmp
cd tmp
git init
git remote add origin ssh://admin@remote.site.com:29418/All-Projects
git fetch origin refs/meta/config:refs/remotes/origin/meta/config
git checkout meta/config
不,您将能够看到 project.config 文件。将以下块保留在该文件中:
[label "Verified"]
value = -1 Fails
value = 0 No score
value = +1 Verified
现在提交并将此更改推送到远程。
git commit -a
git push origin meta/config:meta/config
这就是全部,现在您也可以看到已验证选项。