Skip to content

Commit

Permalink
mailinfo: do not strip leading spaces even for a header line
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Feb 20, 2010
1 parent e9e9219 commit 470b452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions builtin-mailinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,7 @@ static int handle_commit_msg(struct strbuf *line)
return 0;

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

Expand Down
2 changes: 1 addition & 1 deletion t/t5100/msg0015
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- a list
- a list
- of stuff

0 comments on commit 470b452

Please sign in to comment.