From 595218a1c4b191cc5397a6c13afe3a2c748e0018 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 15 Jul 2026 23:25:58 -1000 Subject: Respect the cgitrc order of sections The default sorted the sections and the repositories within them by name, so the order written in the cgitrc file was ignored. --- source/cgit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index 909e120..74e80a6 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -431,7 +431,7 @@ static void prepare_context(void) ctx.cfg.script_name = CGIT_SCRIPT_NAME; ctx.cfg.section = ""; ctx.cfg.repository_sort = "name"; - ctx.cfg.section_sort = 1; + ctx.cfg.section_sort = 0; ctx.cfg.summary_branches = 10; ctx.cfg.summary_log = 10; ctx.cfg.summary_tags = 10; -- cgit 2.12.1