about summary refs log tree commit diff stats
path: root/parsing.c
diff options
context:
space:
mode:
authorLukas Fleischer2015-03-05 12:58:11 +0100
committerJason A. Donenfeld2015-03-05 15:54:34 +0100
commit4d8ed337cb07121cdd6d0041565cf741a9be526a (patch)
tree88a98b03eab729456f41802a55a9f1f84890bf62 /parsing.c
parentsimple-authentication.lua: tie secure cookies to field names (diff)
downloadcgit-4d8ed337cb07121cdd6d0041565cf741a9be526a.tar.gz
cgit-4d8ed337cb07121cdd6d0041565cf741a9be526a.zip
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>
Diffstat (limited to 'parsing.c')
-rw-r--r--parsing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parsing.c b/parsing.c index 0db181b..dcaf2b3 100644 --- a/parsing.c +++ b/parsing.c
@@ -216,6 +216,9 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
216 } 216 }
217 } 217 }
218 218
219 while (p && *p == '\n')
220 p++;
221
219 if (p && *p) 222 if (p && *p)
220 ret->msg = xstrdup(p); 223 ret->msg = xstrdup(p);
221 224