1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 23:07:55 +01:00

Merge branch 'jc/maint-fix-mailinfo-strip'

* jc/maint-fix-mailinfo-strip:
  mailinfo: do not strip leading spaces even for a header line
This commit is contained in:
Junio C Hamano 2010-03-07 12:47:14 -08:00
commit 1dd5db8fda
2 changed files with 2 additions and 3 deletions

View file

@ -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;
}

View file

@ -1,2 +1,2 @@
- a list
- a list
- of stuff