]> git.ipfire.org Git - thirdparty/git.git/commit - git-send-email.perl
send-email: avoid incorrect header propagation
authorMarvin Häuser <mhaeuser@posteo.de>
Mon, 30 Aug 2021 15:30:01 +0000 (15:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Aug 2021 20:25:28 +0000 (13:25 -0700)
commite0821134846b10952efc0737b9e32ca8226f0a4d
tree23152be12ece98f3ce37531d4a0cee4ca4c5abde
parent48bf2fa8bad054d66bd79c6ba903c89c704201f7
send-email: avoid incorrect header propagation

If multiple independent patches are sent with send-email, even if the
"In-Reply-To" and "References" headers are not managed by --thread or
--in-reply-to, their values may be propagated from prior patches to
subsequent patches with no such headers defined.

To mitigate this and potential future issues, make sure all global
patch-specific variables are always either handled by
command-specific code (e.g. threading), or are reset to their default
values for every iteration.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
t/t9001-send-email.sh