Skip to content

Commit

Permalink
Merge branch 'jc/maint-fix-mailinfo-strip' into maint
Browse files Browse the repository at this point in the history
* jc/maint-fix-mailinfo-strip:
  mailinfo: do not strip leading spaces even for a header line
  • Loading branch information
Junio C Hamano committed Mar 8, 2010
2 parents 1f54d69 + 470b452 commit 6ae611f
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 6ae611f

Please sign in to comment.