@matheusbsbs / matheus-bagliano / commits / 470b452628
Fork 0

mailinfo: do not strip leading spaces even for a header line

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 19, 2010 at 21:55 UTC 470b452628d80e89ee869b6b86af6c536ba0b24d
2 files changed +2 -3
builtin-mailinfo.c
+1 -2
@@ -779,8 +779,7 @@ static int handle_commit_msg(struct strbuf *line)
779 return 0;
780
781 if (still_looking) {
782 - strbuf_ltrim(line);
783 - if (!line->len)
782 + if (!line->len || (line->len == 1 && line->buf[0] == '\n'))
783 return 0;
784 }
785
t/t5100/msg0015
+1 -1
@@ -1,2 +1,2 @@
1 -- a list
1 + - a list
2 - of stuff