[PATCH] send-email: test --no-thread --in-reply-to combination
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Mar 11, 2009, 22:40 UTC
- Message-ID
- <356f6d0e8e2d6f7da3ef59f460fd34724ebbc6fd.1236811120.git.trast@student.ethz.ch>
- In-Reply-To
- <200903112337.36799.trast@student.ethz.ch>
3e0c4ff (send-email: respect in-reply-to regardless of threading, 2009-03-01) fixed the handling of the In-Reply-To header when both --no-thread and --in-reply-to are in effect. Add a test for it.
Signed-off-by: Thomas Rast <trast@student.ethz.ch> --- t/t9001-send-email.sh | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh index 08d5b91..a46f747 100755 --- a/t/t9001-send-email.sh +++ b/t/t9001-send-email.sh @@ -531,4 +531,15 @@ test_expect_success 'feed two files' ' test "z$(sed -n -e 2p subjects)" = "zSubject: [PATCH 2/2] add master" ' +test_expect_success 'in-reply-to but no threading' ' + git send-email \ + --dry-run \ + --from="Example <nobody@example.com>" \ + --to=nobody@example.com \ + --in-reply-to="<in-reply-id@example.com>" \ + --no-thread \ + $patches | + grep "In-Reply-To: <in-reply-id@example.com>" +' + test_done
-- 1.6.2.489.g51f6b7