X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft9001-send-email.sh;h=0164629ed00e464bab00083a077e194987f69b4c;hb=4f333bc1d32a84c9ddad737ccdbd6e99ed05d396;hp=fb606a9f05bd6964c588f1ba9e5422e757d12387;hpb=78d553b7d7b269bb22ebd8b1198657c37484a3a0;p=thirdparty%2Fgit.git diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index fb606a9f05..0164629ed0 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -95,6 +95,23 @@ test_expect_success \ 'Verify commandline' \ 'test_cmp expected commandline1' +test_expect_success 'Send patches with --envelope-sender' ' + clean_fake_sendmail && + git send-email --envelope-sender="Patch Contributer " --suppress-cc=sob --from="Example " --to=nobody@example.com --smtp-server="$(pwd)/fake.sendmail" $patches 2>errors +' + +cat >expected <<\EOF +!patch@example.com! +!-i! +!nobody@example.com! +!author@example.com! +!one@example.com! +!two@example.com! +EOF +test_expect_success \ + 'Verify commandline' \ + 'test_cmp expected commandline1' + cat >expected-show-all-headers <<\EOF 0001-Second.patch (mbox) Adding cc: A from line 'From: A '