Cannot push changes as a different user - Invalid committer

394 views
Skip to first unread message

Jens Rabe

unread,
Jul 17, 2014, 11:05:30 AM7/17/14
to repo-d...@googlegroups.com
Hi,

I installed a Gerrit server with LDAP user authentication.

I created and pushed a project as one user "user1" which has the mail address "us...@example.com".

Now, I checked-out this project as a second user "user2" with mail address "us...@example.com". In EGit, I configured Gerrit according to this tutorial: http://www.vogella.com/tutorials/Gerrit/article.html#gerritreview_configuration

Now, I committed the changes to the local clone, and tried to push via Team -> Remote -> Push to Gerrit. I pushed it into refs/for/master.

But I get the following error:

ERROR:  In commit bc19f80c8b94ab4e4ab15bc68792fd4de6c15c00
ERROR:  committer email address us...@example.com
ERROR:  does not match your user account.
ERROR:
ERROR:  The following addresses are currently registered:
ERROR:    us...@example.com
ERROR:
ERROR:  To register an email address, please visit:
ERROR:  http://XXXXXXXXXXX

I already set access rights of refs/for/* to Forge Author Identity and Forge Commiter Identity.

What am I still missing?

Edwin Kempin

unread,
Jul 17, 2014, 11:51:55 AM7/17/14
to Jens Rabe, Repo and Gerrit Discussion
You must assign Forge Author Identity and Forge Commiter Identity on refs/heads/*, not refs/for/*
 

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jens Rabe

unread,
Jul 18, 2014, 5:11:33 AM7/18/14
to repo-d...@googlegroups.com, schaumwa...@googlemail.com
This permission is already inherited from "All Projects", but it still does not work.
Reply all
Reply to author
Forward
0 new messages