Browse Source

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

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 15 years ago
parent
commit
470b452628
  1. 3
      builtin-mailinfo.c

3
builtin-mailinfo.c

@ -779,8 +779,7 @@ static int handle_commit_msg(struct strbuf *line)
return 0; return 0;


if (still_looking) { if (still_looking) {
strbuf_ltrim(line); if (!line->len || (line->len == 1 && line->buf[0] == '\n'))
if (!line->len)
return 0; return 0;
} }



Loading…
Cancel
Save