推送绕过Gerrit代码审查(TortoiseGit) [英] Push bypasses Gerrit Code Review (TortoiseGit)

查看:366
本文介绍了推送绕过Gerrit代码审查(TortoiseGit)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够推送到存储库,但要使用代码审查功能.为了推送,我为此使用了tortoisegit,当推送到master时,出现此错误:

I need to be able to push to a repository but using the code-review feature. To push I am using tortoisegit for this, when pushing to master I get this error:

ssh://myusername @ myorganization:29418/project ! [远程拒绝]主机->主机(无法将引用更新为快进) 错误:无法将某些引用推送到ssh://myusername @ myorganization:29418/project

ssh://myusername@myorganization:29418/project ! [remote rejected] master -> master (can not update the reference as a fast forward) error: failed to push some refs to ssh://myusername@myorganization:29418/project

我能够推送的唯一方法是向该组添加推送"权限,但这会绕过代码审查.如何设置Gerrit,以便它可以推动我进行审查?

The only way I am able to push is by adding the Push permission to the group but this bypasses the code-review. How can I set up Gerrit so that it allows me to push for review?

我不是进行此设置的人,所以我在理解所需的权限时遇到了问题,我已经阅读了Gerrit的ACL文档,但不清楚要做什么.

I wasn't the person who set this up so I am having problems to understand the required permissions, I have read the ACL documentation of Gerrit but I don't have clear what I have to do.

提前谢谢!

推荐答案

您的权限可能是正确的,但是您应该推送到refs/for/master而不是master.例如,

Your permissions are probably right, but you should push to refs/for/master instead of master. For example,

git push ssh://myusername@myorganization:29418/project HEAD:refs/for/master

这篇关于推送绕过Gerrit代码审查(TortoiseGit)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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