neocgit

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

commit 25f6a1f4c29b6a6009a185e9473317f0fe64616d
parent 50fbd46c917a06f60235da59adb860697ea94eb0
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Tue,  6 Jan 2009 21:51:09 +0100

Merge branch 'stable'

Diffstat:
Mtests/t0104-tree.sh | 2+-
Mui-tree.c | 6++++--
2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh @@ -15,7 +15,7 @@ run_test 'find line 1' ' ' run_test 'no line 2' ' - grep -e "<a id=.n2. name=.n2. href=.#n2.>2</a>" trash/tmp + ! grep -e "<a id=.n2. name=.n2. href=.#n2.>2</a>" trash/tmp ' run_test 'generate foo+bar/tree' 'cgit_url "foo%2bbar/tree" >trash/tmp' diff --git a/ui-tree.c b/ui-tree.c @@ -54,8 +54,10 @@ static void print_object(const unsigned char *sha1, char *path) } idx++; } - htmlf(linefmt, ++lineno); - html_txt(buf + start); + if (start < idx) { + htmlf(linefmt, ++lineno); + html_txt(buf + start); + } html("</td></tr>\n"); html("</table>\n"); }