From mboxrd@z Thu Jan 1 00:00:00 1970 From: sylvain at abstraction.fr (Sylvain Rabot) Date: Fri, 7 Oct 2016 11:27:13 +0200 Subject: Small patch makes cgit crash Message-ID: Hi, I've made a small patch to make cgit's summary layout look more like gitweb's. It works but in some cases which I wasn't able to determine the particulars it seems to crash and the clone url and the footer are not displayed, e.g. : - not displayed: http://cgit.abstraction.fr/cgit.cgi/meld.git/ - displayed: http://cgit.abstraction.fr/cgit.cgi/postgresql.git/ Here's the patch : diff --git a/ui-summary.c b/ui-summary.c index 8e81ac4..d84faad 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -51,14 +51,14 @@ void cgit_print_summary(void) cgit_print_layout_start(); html(""); - cgit_print_branches(ctx.cfg.summary_branches); - htmlf("", columns); - cgit_print_tags(ctx.cfg.summary_tags); if (ctx.cfg.summary_log > 0) { - htmlf("", columns); cgit_print_log(ctx.qry.head, 0, ctx.cfg.summary_log, NULL, NULL, NULL, 0, 0, 0); + htmlf("", columns); } + cgit_print_tags(ctx.cfg.summary_tags); + htmlf("", columns); + cgit_print_branches(ctx.cfg.summary_branches); urls = 0; cgit_add_clone_urls(print_url); html("
 
 
 
 
"); I would appreciate any help. Best regards. -- Sylvain Rabot