send-email: test --no-thread --in-reply-to combination
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Rast committed
Mar 11, 2009 at 23:40 UTC
aaab4b9fb97c1f638d02be7b8c432a4d57f37c56
1 file changed
+11
t/t9001-send-email.sh
+11
@@ -292,4 +292,15 @@ test_expect_success '--compose adds MIME for utf8 subject' '
292
grep "^Subject: =?utf-8?q?utf8-s=C3=BCbj=C3=ABct?=" msgtxt1
293
'
294
295
+test_expect_success 'in-reply-to but no threading' '
296
+ git send-email \
297
+ --dry-run \
298
+ --from="Example <nobody@example.com>" \
299
+ --to=nobody@example.com \
300
+ --in-reply-to="<in-reply-id@example.com>" \
301
+ --no-thread \
302
+ $patches |
303
+ grep "In-Reply-To: <in-reply-id@example.com>"
304
+'
305
+
306
test_done