Skip to content

Commit a57ca9d

Browse files
committed
Merge branch 'tr/maint-1.6.0-send-email-irt'
* tr/maint-1.6.0-send-email-irt: send-email: test --no-thread --in-reply-to combination send-email: respect in-reply-to regardless of threading Conflicts: t/t9001-send-email.sh
2 parents a9bfe81 + aaab4b9 commit a57ca9d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ sub send_message
821821
Message-Id: $message_id
822822
X-Mailer: git-send-email $gitversion
823823
";
824-
if ($thread && $reply_to) {
824+
if ($reply_to) {
825825

826826
$header .= "In-Reply-To: $reply_to\n";
827827
$header .= "References: $references\n";

t/t9001-send-email.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,15 @@ test_expect_success 'feed two files' '
531531
test "z$(sed -n -e 2p subjects)" = "zSubject: [PATCH 2/2] add master"
532532
'
533533

534+
test_expect_success 'in-reply-to but no threading' '
535+
git send-email \
536+
--dry-run \
537+
--from="Example <nobody@example.com>" \
538+
--to=nobody@example.com \
539+
--in-reply-to="<in-reply-id@example.com>" \
540+
--no-thread \
541+
$patches |
542+
grep "In-Reply-To: <in-reply-id@example.com>"
543+
'
544+
534545
test_done

0 commit comments

Comments
 (0)