diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-06-13 12:55:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-13 12:55:50 -0700 |
commit | 08ba24898a1c5c0815450d481d8e5d01bf671642 (patch) | |
tree | 9b06143e91f1ef45194210066e955863f0ea12ad /t | |
parent | e2486193c54e5404bad1748d220f58a414867797 (diff) | |
parent | 95a877a34c3838a92a99794ebc3b082f6f525899 (diff) | |
download | git-08ba24898a1c5c0815450d481d8e5d01bf671642.tar.gz |
Merge branch 'mh/fix-send-email-threaded'
* mh/fix-send-email-threaded:
send-email: fix a typo in a comment
send-email: fix threaded mails without chain-reply-to
add a test for git-send-email for threaded mails without chain-reply-to
doc/send-email: clarify the behavior of --in-reply-to with --no-thread
send-email: fix non-threaded mails
add a test for git-send-email for non-threaded mails
Diffstat (limited to 't')
-rwxr-xr-x | t/t9001-send-email.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 2ce24cd5a6..9ce04fd472 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -621,4 +621,25 @@ test_expect_success 'in-reply-to but no threading' ' grep "In-Reply-To: <in-reply-id@example.com>" ' +test_expect_success 'no in-reply-to and no threading' ' + git send-email \ + --dry-run \ + --from="Example <nobody@example.com>" \ + --to=nobody@example.com \ + --nothread \ + $patches $patches >stdout && + ! grep "In-Reply-To: " stdout +' + +test_expect_success 'threading but no chain-reply-to' ' + git send-email \ + --dry-run \ + --from="Example <nobody@example.com>" \ + --to=nobody@example.com \ + --thread \ + --nochain-reply-to \ + $patches $patches >stdout && + grep "In-Reply-To: " stdout +' + test_done |