rebase: fix broken email with --committer-date-is-author-date
commit5f35edd9d7ebca17f205b338d340cc6ce214644a
authorJeff King <peff@peff.net>
Fri, 23 Oct 2020 07:10:15 +0000 (23 03:10 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Oct 2020 15:25:22 +0000 (23 08:25 -0700)
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 <info@venomvendor.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
t/t3436-rebase-more-options.sh