Git mirror with gerrit

esio picture esio · Feb 13, 2012 · Viewed 10.9k times · Source

how do I mirror a git repository to Gerrit?

I will do this:

[git repository for libdrm] -> my gerrit <-> developers

Gerrit download changes from freedesktop git repository. Developers clone repository from gerrit and push into gerrit. Developers never pushes changes to main repository.

I have created new project with gerrit. I download repository:

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

I will push this repository to gerrit, but I can't because I have got errors:

remote: ERROR:  In commit ced219ebbd3b266ac8326223bad62f994907ae6b
remote: ERROR:  committer email address [email protected]
remote: ERROR:  does not match your user account.
remote: ERROR:
remote: ERROR:  The following addresses are currently registered:
remote: ERROR:    [email protected]
remote: ERROR:
remote: ERROR:  To register an email address, please visit:
remote: ERROR:  http://mygerrit-server/#/settings/contact

I have permisions for all. How I can add mirror to gerrit?

Answer

Brad picture Brad · Feb 13, 2012

You need the 'Forge Committer' and 'Forge Author' access permissions. This tells Gerrit to ignore that you aren't the author or committer of the commits you are pushing. http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/access-control.html#category_forge_author