aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2009-03-11 23:40:13 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-11 20:54:42 -0700
commitaaab4b9fb97c1f638d02be7b8c432a4d57f37c56 (patch)
treea37a6e35a43c253a635dbe5dc496ff0a0164c775 /t
parent3e0c4ffdbddf1b3f84e0b8aa70e3b2fff68a56c5 (diff)
downloadgit-aaab4b9fb97c1f638d02be7b8c432a4d57f37c56.tar.gz
git-aaab4b9fb97c1f638d02be7b8c432a4d57f37c56.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t9001-send-email.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index d098a01ba..a404204b1 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -292,4 +292,15 @@ test_expect_success '--compose adds MIME for utf8 subject' '
grep "^Subject: =?utf-8?q?utf8-s=C3=BCbj=C3=ABct?=" msgtxt1
'
+test_expect_success 'in-reply-to but no threading' '
+ git send-email \
+ --dry-run \
+ --from="Example <nobody@example.com>" \
+ --to=nobody@example.com \
+ --in-reply-to="<in-reply-id@example.com>" \
+ --no-thread \
+ $patches |
+ grep "In-Reply-To: <in-reply-id@example.com>"
+'
+
test_done