]> quire.kejadlen.dev Git - quire.git/commit
Load per-repo config from bare repos via git show
authorAlpha Chen <alpha@kejadlen.dev>
Sun, 26 Apr 2026 14:48:17 +0000 (14:48 +0000)
committerAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 01:34:34 +0000 (18:34 -0700)
commit414c9ca2ccdfc01f7f1a3f344b81557c6c145777
treebf84162908c0d9bd608b5542ad8a6460cbb54a76
parent905a657e0735602347ef01ff6b5055168a389abb
Load per-repo config from bare repos via git show

Repo::config() reads HEAD:.quire/config.fnl from bare repos, returning
a default RepoConfig when HEAD is missing (fresh repo), the file is
absent, or the :mirror key is omitted. Malformed Fennel surfaces as a
miette error with source labels pointing at the right line.

This is the foundation for per-repo mirror URLs — the config lives in
the repo's content, not in server-side operator state.

Assisted-by: GLM-5.1 via pi
src/quire.rs