Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'source/cgit.c')
| -rw-r--r-- | source/cgit.c | 1 |
1 file changed, 1 insertion, 0 deletions
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(); |
