Skip to content

Commit aaab4b9

Browse files
trastgitster
authored andcommitted
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>
1 parent 3e0c4ff commit aaab4b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t9001-send-email.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,4 +292,15 @@ test_expect_success '--compose adds MIME for utf8 subject' '
292292
grep "^Subject: =?utf-8?q?utf8-s=C3=BCbj=C3=ABct?=" msgtxt1
293293
'
294294

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+
295306
test_done

0 commit comments

Comments
 (0)