summaryrefslogtreecommitdiff
path: root/t/t9001-send-email.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-06-12 16:23:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-06-12 16:23:43 (GMT)
commit95a877a34c3838a92a99794ebc3b082f6f525899 (patch)
treebcd7961c64ef7d319e75b7dc320235881efd1e69 /t/t9001-send-email.sh
parenta1b5b371994beb044053da22ec4a9607630a83a2 (diff)
parent0fd41f2d66fdb7c8125f341c72f075aca045017f (diff)
downloadgit-95a877a34c3838a92a99794ebc3b082f6f525899.zip
git-95a877a34c3838a92a99794ebc3b082f6f525899.tar.gz
git-95a877a34c3838a92a99794ebc3b082f6f525899.tar.bz2
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 8ab1a78..9ce04fd 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 \