summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-06-12 09:23:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-06-12 09:23:43 -0700
commit95a877a34c3838a92a99794ebc3b082f6f525899 (patch)
treebcd7961c64ef7d319e75b7dc320235881efd1e69 /t/t9001-send-email.sh
parentsend-email: fix a typo in a comment (diff)
parentdoc/send-email: clarify the behavior of --in-reply-to with --no-thread (diff)
downloadtgif-95a877a34c3838a92a99794ebc3b082f6f525899.tar.xz
Merge branch 'mh/maint-fix-send-email-threaded' into mh/fix-send-email-threaded
* mh/maint-fix-send-email-threaded: doc/send-email: clarify the behavior of --in-reply-to with --no-thread send-email: fix non-threaded mails add a test for git-send-email for non-threaded mails Conflicts: git-send-email.perl t/t9001-send-email.sh
Diffstat (limited to 't/t9001-send-email.sh')
-rwxr-xr-xt/t9001-send-email.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 8ab1a78bf5..9ce04fd472 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -621,6 +621,16 @@ 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_expect_success 'threading but no chain-reply-to' '
git send-email \
--dry-run \