New issue
Advanced search Search tips

Issue 721348 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----



Sign in to add a comment

Link gerrit accounts for rego@

Project Member Reported by r...@igalia.com, May 11 2017

Issue description


I've tried for the first time "git cl upload --gerrit" and I got the following error:

remote: ERROR:  In commit 8f8c231ca8eb521e329090ae58256325176f71c0        
remote: ERROR:  committer email address rego@igalia.com        
remote: ERROR:  does not match your user account.        
remote: ERROR:        
remote: ERROR:  The following addresses are currently registered:        
remote: ERROR:    rego@chromium.org        
remote: ERROR:        
remote: ERROR:  To register an email address, please visit:        
remote: ERROR:  https://chromium-review.googlesource.com/#/settings/contact        

I've tried to add rego@chromium.org to my rego@igalia.com account in Gerrit,
but then I got the following error:
"Server error: Identity in use by another account"

I've successfully reviewed patches with my rego@igalia.com account in Gerrit
during these weeks, but never tried to upload a patch.

What's going on? Should I link these accounts? Or what's the solution?

Thanks!
 

Comment 1 by aga...@chromium.org, May 11 2017

Owner: aga...@chromium.org
Status: Started (was: Unconfirmed)
Sorry for the confusion! There are a few paths forward here:
1) Link the accounts. I can do this for you, if you like. You'll also have to tell me which email address you want as the "primary" (the one that shows up in the UI).
2) Change your credentials. The message it printed about "the following addresses are currently registered" means that your credentials (~/.gitcookies) list your @chromium.org address. If you go to https://chromium.googlesource.com/new-password and sign in with your igalia account, then you'll be able to replace some of the lines in your current .gitcookies with the ones generated there, and then you will be pushing with the same account as is in your commit's committer field.

Personally, I'd do both. I think that your credentials should always match your git config user.email address, since that reduces confusion for everyone involved. But I can then also link your accounts, so that the system is more forgiving.

What would you like to do?

Comment 2 by r...@igalia.com, May 12 2017

Ok, thank you for the details. I thought it was something like that,
but couldn't find the file that was storing my credentials.

Anyway I'd like to link my accounts and use rego@igalia.com as the primary one.
If you can do it, it'd be really nice. Thanks!

Comment 3 by aga...@chromium.org, May 12 2017

Status: Fixed (was: Started)
Summary: Link gerrit accounts for rego@ (was: Gerrit: Unable to upload CL)
Done!

Sign in to add a comment