14

如何将 git 存储库镜像到 Gerrit?

我会做的:

[libdrm 的 git 存储库] -> 我的 gerrit <-> 开发人员

Gerrit 从 freedesktop git 存储库下载更改。开发人员从 gerrit 克隆存储库并推送到 gerrit。开发人员从不将更改推送到主存储库。

我用 gerrit 创建了新项目。我下载存储库:

git clone http://anongit.freedesktop.org/git/mesa/drm.git

我会将这个存储库推送到 gerrit,但我不能,因为我有错误:

remote: ERROR:  In commit ced219ebbd3b266ac8326223bad62f994907ae6b
remote: ERROR:  committer email address chris@chris-wilson.co.uk
remote: ERROR:  does not match your user account.
remote: ERROR:
remote: ERROR:  The following addresses are currently registered:
remote: ERROR:    xxx@example.com
remote: ERROR:
remote: ERROR:  To register an email address, please visit:
remote: ERROR:  http://mygerrit-server/#/settings/contact

我对所有人都有权限。如何将镜像添加到 gerrit?

4

1 回答 1

21

您需要“伪造提交者”和“伪造作者”访问权限。这告诉 Gerrit 忽略您不是您正在推送的提交的作者或提交者。http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/access-control.html#category_forge_author

于 2012-02-13T20:26:45.253 回答