Fix committer identity on cherry-pick

Instead of storing "<san|account-1000371@unknown>" for the committer
email address store the preferred email from the user account.  We
broke this behavior back when I refactored the way PersonIdent was
created from an IdentifiedUser instance.

Bug: issue 356
Change-Id: Ia12446db165041e6aa1bc2222171b0d9296dc9b7
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-12-12 18:08:56 -08:00
parent e31d02c9cd
commit f91d8c0181
4 changed files with 81 additions and 26 deletions

View File

@@ -193,7 +193,7 @@ final class Receive extends AbstractGitCommand {
if (project.isUseContributorAgreements()) {
verifyActiveContributorAgreement();
}
refLogIdent = currentUser.newPersonIdent();
refLogIdent = currentUser.newRefLogIdent();
verifyProjectVisible("reviewer", reviewerId);
verifyProjectVisible("CC", ccId);