mirror of
https://git.zx2c4.com/cgit
synced 2025-07-10 18:24:33 +02:00
Remove leading newline characters from tag messages
Fixes a regression introduced in commit 936295c
(Simplify commit and tag
parsing, 2015-03-03).
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
ecd6b7230c
commit
4d8ed337cb
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,9 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while (p && *p == '\n')
|
||||||
|
p++;
|
||||||
|
|
||||||
if (p && *p)
|
if (p && *p)
|
||||||
ret->msg = xstrdup(p);
|
ret->msg = xstrdup(p);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue