mailinfo: fix in-body header continuations
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Apr 2017 19:14:39 +0000 (12:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Apr 2017 07:49:40 +0000 (00:49 -0700)
commitfd1062e52e1a7ed3be443a320708ed849958c1bf
tree3b80272b10bf546ef31dda81112acaea053d113e
parent4cff50b3fb50940e57dc10769b2f92d5cec1a05a
mailinfo: fix in-body header continuations

An empty line should stop any pending in-body headers, and start the
actual body parsing.

This also modifies the original test for the in-body headers to actually
have a real commit body that starts with spaces, and changes the test to
check that the long line matches _exactly_, and doesn't get extra data
from the body.

Fixes:6b4b013f1884 ("mailinfo: handle in-body header continuations")
Cc: Jonathan Tan <jonathantanmy@google.com>
Cc: Jeff King <peff@peff.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mailinfo.c
t/t4150-am.sh