diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-10-26 21:52:26 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-10-26 21:52:26 -0700 |
commit | 9b1054d93e7e8564d0d9865cb7118cb6e756c74b (patch) | |
tree | 0b9de3569b26589e6fa265e15d1ed204828ce069 /t/t9001-send-email.sh | |
parent | e6202dfe0021e2662eb4e19e6d01e33081608b5e (diff) | |
parent | 6e74e075d25aea67cf973e456a6804c0c3741235 (diff) | |
download | git-9b1054d93e7e8564d0d9865cb7118cb6e756c74b.tar.gz |
Merge branch 'jp/send-email-to-cmd'
* jp/send-email-to-cmd:
git-send-email.perl: Add --to-cmd
Conflicts:
git-send-email.perl
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-x | t/t9001-send-email.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index a298eb0437..ba11c00c74 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -201,6 +201,24 @@ test_expect_success $PREREQ 'Prompting works' ' grep "^To: to@example.com\$" msgtxt1 ' +test_expect_success $PREREQ 'tocmd works' ' + clean_fake_sendmail && + cp $patches tocmd.patch && + echo tocmd--tocmd@example.com >>tocmd.patch && + { + echo "#!$SHELL_PATH" + echo sed -n -e s/^tocmd--//p \"\$1\" + } > tocmd-sed && + chmod +x tocmd-sed && + git send-email \ + --from="Example <nobody@example.com>" \ + --to-cmd=./tocmd-sed \ + --smtp-server="$(pwd)/fake.sendmail" \ + tocmd.patch \ + && + grep "^To: tocmd@example.com" msgtxt1 +' + test_expect_success $PREREQ 'cccmd works' ' clean_fake_sendmail && cp $patches cccmd.patch && |