diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-05-19 18:27:06 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-05-19 18:27:06 +0200 |
commit | b04671b638745ecdad70d3f22e9f5032f41fc26d (patch) | |
tree | 06830250b0f230e7c1d599aa5e77bed7c48540e7 /git-send-email.perl | |
parent | Merge branch 'tb/run-command-needs-alloc-h' (diff) | |
parent | t9001: mark the script as no longer leak checker clean (diff) | |
download | git-b04671b638745ecdad70d3f22e9f5032f41fc26d.tar.xz git-b04671b638745ecdad70d3f22e9f5032f41fc26d.zip |
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-x | git-send-email.perl | 1 |
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>) { |