Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git mirror with gerrit

Tags:

git

gerrit

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?

like image 921
esio Avatar asked Feb 13 '12 14:02

esio


People also ask

What does mirror do in git?

Git mirroring is when a mirror copies the refs & the remote-tracking branches. It's supposed to be a functionally identical copy that is interchangeable with the original.


1 Answers

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

like image 135
Brad Avatar answered Oct 03 '22 18:10

Brad