I at first inadvertently broke this in the process of adding --{to,cc}-cmd support to format-patch and didn't immediately notice because there wasn't a test for it, so let's add one now. Signed-off-by: Zev Weiss <zev@xxxxxxxxxxxxxxxxx> --- t/t4014-format-patch.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh index 012f155e10ae..ba5fd0efe2ae 100755 --- a/t/t4014-format-patch.sh +++ b/t/t4014-format-patch.sh @@ -2368,4 +2368,11 @@ test_expect_success 'interdiff: solo-patch' ' test_cmp expect actual ' +test_expect_success 'cover-letter gets To: header' ' + rm -fr patches && + git config --unset-all format.to && + git format-patch -o patches --cover-letter --to "R E Cipient <rcipient@xxxxxxxxxxx>" main..side >list && + grep "^To: R E Cipient <rcipient@xxxxxxxxxxx>\$" patches/0000-cover-letter.patch +' + test_done -- 2.39.1.236.ga8a28b9eace8