Browse Source

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

* jc/maint-fix-mailinfo-strip:
  mailinfo: do not strip leading spaces even for a header line
maint
Junio C Hamano 15 years ago
parent
commit
6ae611fa8d
  1. 3
      builtin-mailinfo.c
  2. 2
      t/t5100/msg0015

3
builtin-mailinfo.c

@ -779,8 +779,7 @@ static int handle_commit_msg(struct strbuf *line) @@ -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;
}


2
t/t5100/msg0015

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

Loading…
Cancel
Save