即使更改 ID 存在,Gerrit 也会给出缺少更改 ID 的错误
我正在尝试将一些更改推送到 gerrit,但 gerrit 给我返回一个远程错误,
! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit message )
我确实像往常一样在最后一段中有更改 ID。
user type is shown in settings and user switchboard
Change-Id: I6b752abec9cf423d088bae4bfd939079dff21b3d
我如何推动此更改进行审核?
I'm trying to push some changes to gerrit but gerrit is giving me back a remote error
! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit message )
I do have the change-id in the last paragraph just like usual.
user type is shown in settings and user switchboard
Change-Id: I6b752abec9cf423d088bae4bfd939079dff21b3d
How can I push this change for review?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我试图将多个提交(我认为只有一个)推送到 gerrit,并且某些提交没有将更改 ID 修改到提交消息的末尾。
gerrit 不喜欢这些提交,所以我将所有提交都集中到一个提交中,效果很好。
I was trying to push multiple commits (I thought it was only one) to gerrit and some of the commits did not have change-ids amended to the end of the commit message.
gerrit didn't like those commits, so I brought all the commits to one and it worked fine.
我意识到这件事已经过去快一个月了,但还没有得到答复,我喜欢结束。 :-)
您确定它在最后一段吗?提交消息等中没有无关字符?
如果您不需要特定的 Change-Id,请修改提交并删除该行,以便 commit-msg 挂钩将重新生成它。
I realize this is almost a month old now, but it's gone unanswered and I like to have closure. :-)
Are you sure it's in the last paragraph? No extraneous characters in the commit message, etc?
If you don't need that specific Change-Id, amend the commit and remove that line so the commit-msg hook will regenerate it.