mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
Avoid composing too long "References" header.
The number of characters in a line MUST be no more than 998 characters, and SHOULD be no more than 78 characters (RFC2822). It is much safer to fold the header by ourselves. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
0e070f997b
commit
a925b89cea
@ -595,7 +595,7 @@ foreach my $t (@files) {
|
||||
if ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) {
|
||||
$reply_to = $message_id;
|
||||
if (length $references > 0) {
|
||||
$references .= " $message_id";
|
||||
$references .= "\n $message_id";
|
||||
} else {
|
||||
$references = "$message_id";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user