gpt4 book ai didi

git - Gerrit 尝试配置简单的 rebase

转载 作者:行者123 更新时间:2023-12-04 14:15:14 25 4
gpt4 key购买 nike

我想在 gerrit 2.9.1 上启用简单的 rebase。我遵循了文档并更改了标签。

这是我在 MY_PROJECT.git/config 中的内容:

[label "Code-Review"]
function = MaxWithBlock
copyMinScore = true
value = -2 Do not submit, I must review it !
value = -1 I would prefer that you didn't submit this
value = 0 No score
value = +1 Looks good to me, but someone else must approve
value = +2 Looks good to me, approved !
copyAllScoresOnTrivialRebase = true
copyAllScoresIfNoCodeChange = true

我重新启动了 gerrit,当我查看我的界面时,标签没有改变,也没有激活普通的 rebase。这是我的界面上的内容:

Code-Review:
+2 Looks good to me, approved
+1 Looks good to me, but someone else must approve
0 No score
-1 I would prefer this is not merged as is
-2 This shall not be merged

知道为什么它不起作用吗?

最佳答案

要编辑的文件是“所有项目”存储库中的“project.config”。

参见 this link .

$ git clone ssh://user@gerrit.xxx.com:29418/All-Projects
$ cd 所有项目
$ git fetch origin refs/meta/config:refs/remotes/origin/meta/config
$ git checkout meta/config
$ #edit project.config
$ git commit -a
$ git push origin meta/config:meta/config

关于git - Gerrit 尝试配置简单的 rebase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27905021/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com