neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 4d8ed337cb07121cdd6d0041565cf741a9be526a
parent ecd6b7230c88deb23f880ee1df75ae4b230cf9ec
Author: Lukas Fleischer <cgit@cryptocrack.de>
Date:   Thu,  5 Mar 2015 12:58:11 +0100

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:
Mparsing.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/parsing.c b/parsing.c @@ -216,6 +216,9 @@ struct taginfo *cgit_parse_tag(struct tag *tag) } } + while (p && *p == '\n') + p++; + if (p && *p) ret->msg = xstrdup(p);