From 32cb4f35c92ba2602b5e65d05239158c5e32f56b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 18:07:09 -1000 Subject: List scanned repositories in path order readdir hands entries back in whatever order the filesystem keeps them, so proj111 could come before proj105 and a section could start twice. section-sort is off by default to keep the order written in cgitrc, and a scan has none to keep. --- source/cgit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/cgit.c') diff --git a/source/cgit.c b/source/cgit.c index 3571bc4..254062f 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -395,6 +395,7 @@ static void build_scan_key(struct strbuf *key, const char *path) }; const int numbers[] = { ctx.cfg.scan_hidden_path, + ctx.cfg.case_sensitive_sort, ctx.cfg.remove_suffix, ctx.cfg.section_from_path, ctx.cfg.enable_git_config, -- cgit 2.12.1