Gerrit:即使我允许“推送合并提交",也拒绝远程(您不能上传合并). [英] Gerrit: remote rejected (you are not allowed to upload merges) even though I allowed "Push merge commit"

查看:270
本文介绍了Gerrit:即使我允许“推送合并提交",也拒绝远程(您不能上传合并).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将Gerrit配置为允许分支上的Push Merge Commit,但是当我尝试推送合并提交时仍然出现以下错误:

I've configured Gerrit to allow Push Merge Commit on my branch, but I still get the following error when I try to push a merge commit:

! [remote rejected] ANDROID-foo -> ANDROID-foo (you are not allowed to upload merges)

我正在运行Gerrit 2.8-1-gaa9367b.

I'm running Gerrit 2.8-1-gaa9367b.

推荐答案

这是解决方法是要创建另一个名为refs/for/refs/heads/<BRANCH_NAME>的引用,并在其上允许Push Merge Commit.

This is a bug in gerrit. The workaround is to create another reference named refs/for/refs/heads/<BRANCH_NAME>, and allow Push Merge Commit on it.

更具体地说,请在project.config文件中添加以下行

To be more specifically, add following lines in your project.config file

[access "refs/for/refs/*"]
  pushMerge = group <your-id-here>

这篇关于Gerrit:即使我允许“推送合并提交",也拒绝远程(您不能上传合并).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆