Skip to content

Commit 923cc82

Browse files
committed
Merge branch 'tr/maint-1.6.0-send-email-irt' into maint
* 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 8af95ca + aaab4b9 commit 923cc82

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
@@ -455,4 +455,15 @@ test_expect_success 'feed two files' '
455455
test "z$(sed -n -e 2p subjects)" = "zSubject: [PATCH 2/2] add master"
456456
'
457457

458+
test_expect_success 'in-reply-to but no threading' '
459+
git send-email \
460+
--dry-run \
461+
--from="Example <[email protected]>" \
462+
463+
--in-reply-to="<[email protected]>" \
464+
--no-thread \
465+
$patches |
466+
grep "In-Reply-To: <[email protected]>"
467+
'
468+
458469
test_done

0 commit comments

Comments
 (0)