From 8a7aa400143f3e95b3ecd18f19e21b526d6a419d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 19:47:34 -1000 Subject: Read the description file without repo.desc Only a scanned repository fell back to its description file, so one listed in cgitrc without repo.desc showed "[no description]" however its file read. repo.desc may follow repo.path, so the file is read where a page shows the description, which also spares every other request the reads. --- 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 180cd82..0017d75 100644 --- a/source/cgit.c +++ b/source/cgit.c @@ -1184,6 +1184,7 @@ static int prepare_repo_cmd(int nongit, int err, int clone) } strbuf_addf(&title, "%s - %s", ctx.repo->name, ctx.cfg.root_title); ctx.page.title = title.buf; + cgit_read_repo_desc(ctx.repo); if (!ctx.repo->defbranch) ctx.repo->defbranch = guess_defbranch(); -- cgit 2.12.1