Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-05-19 19:27:06 +0300
committerJunio C Hamano <gitster@pobox.com>2023-05-19 19:27:06 +0300
commitb04671b638745ecdad70d3f22e9f5032f41fc26d (patch)
tree06830250b0f230e7c1d599aa5e77bed7c48540e7 /git-send-email.perl
parent75ab1fa5ab167828da918f19c7aebe5ee7a1b304 (diff)
parent20bd08aefb20168c6c227d2bfd1965761f9201ea (diff)
Merge branch 'jc/send-email-pre-process-fix'
When "git send-email" that uses the validate hook is fed a message without and then with Message-ID, it failed to auto-assign a unique Message-ID to the former and instead reused the Message-ID from the latter, which has been corrected. This was a fix for a recent regression caught before the release, so no need to mention it in the release notes. * jc/send-email-pre-process-fix: t9001: mark the script as no longer leak checker clean send-email: clear the $message_id after validation
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 89d8237e89..affbb88509 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -1788,6 +1788,7 @@ sub pre_process_file {
$subject = $initial_subject;
$message = "";
$message_num++;
+ undef $message_id;
# Retrieve and unfold header fields.
my @header_lines = ();
while(<$fh>) {