rebase: fix broken email with --committer-date-is-author-date
authorJeff King <redacted>
Fri, 23 Oct 2020 07:10:15 +0000 (03:10 -0400)
committerJunio C Hamano <redacted>
Fri, 23 Oct 2020 15:25:22 +0000 (08:25 -0700)
commit5f35edd9d7ebca17f205b338d340cc6ce214644a
tree33c547ab8dae6c1cedef2af684dd08a0dd9086fe
parent16b0bb99eac5ebd02a5dcabdff2cfc390e9d92ef
rebase: fix broken email with --committer-date-is-author-date

Commit 7573cec52c (rebase -i: support --committer-date-is-author-date,
2020-08-17) copied the committer ident-parsing code from builtin/am.c.
And in doing so, it copied a bug in which we always set the email to an
empty string. We fixed the version in git-am in the previous commit;
this commit fixes the copied code.

Reported-by: VenomVendor <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
sequencer.c
t/t3436-rebase-more-options.sh
git clone https://git.99rst.org/PROJECT