send-email: fix non-threaded mails
[gitweb.git] / t / t9001-send-email.sh
index ce26ea4ac53a4608f6f8234b67868a9cc85be7f8..8518acaca6ea01723bd2a2e36c90cae23f6fbdcb 100755 (executable)
@@ -621,4 +621,14 @@ 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_done