| Issue 3597: | gerrit uses globally configured git user.email address instead of the locally configured user.email | |
| 1 person starred this issue and may be notified of changes. | Back to list |
I have several email addresses and use git with several projects, my globally configured user.email is not the same as the user.email configured in the git repository I use with gerrit. What steps will reproduce the problem? 1. git config --global user.email yourregular@email.com 2. cd gerrit_project && git config user.email yourgerritproject@email.com 3. git push a topic branch for review in gerrit What is the expected output? What do you see instead? What I expect is for gerrit to work as usual, instead I get the message: remote: ERROR: In commit 815fb0c09f6a97909dc388b15d8c054e73107941 remote: ERROR: committer email address <my.global@email.com> remote: ERROR: does not match your user account. remote: ERROR: remote: ERROR: The following addresses are currently registered: remote: ERROR: my.gerrit.project@email.com remote: ERROR: remote: ERROR: To register an email address, please visit: remote: ERROR: https://gerrit.domain.org/#/settings/contact Please provide any additional information below. using git show on the given commit shows me the correct locally configured email address, however grepping recursively for the wrong (globally configured) email address shows that gerrit made the mistake of creating some commits in refs/... using the globally configured email address.
Oct 12, 2015
Project Member
#1
ekem...@google.com
Oct 12, 2015
> And Gerrit doesn't support preferred email addresses on repository level. Gerrit does allow you to associate multiple email addresses with the same Gerrit user. Using that may be good enough to fix the original poster's problem. |
|
| ► Sign in to add a comment |