send-email: fix non-threaded mails
[gitweb.git] / t / t9001-send-email.sh
index d9420e0a3b611c8aa8bb3a64d1bb21859d4a87ff..8518acaca6ea01723bd2a2e36c90cae23f6fbdcb 100755 (executable)
@@ -616,9 +616,19 @@ test_expect_success 'in-reply-to but no threading' '
                --from="Example <nobody@example.com>" \
                --to=nobody@example.com \
                --in-reply-to="<in-reply-id@example.com>" \
-               --no-thread \
+               --nothread \
                $patches |
        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