AgeCommit message (Collapse)AuthorLines
Keep snapshots working under a global git configBryce Kwon-1/+7
cgit unsets HOME to isolate git from the calling user, but git still finds the global config through its getpwuid fallback and then dies expanding a ~ in core.excludesfile. That die happened after the snapshot headers and the gzip filter were already in place, so the error page was compressed into the archive and every snapshot failed to decompress.
Clamp the log offset to bound history walksBryce Kwon-1/+11
A crafted ofs value could send cgit walking most of the history for one request.
Check max-blob-size up front and default to 10 MBBryce Kwon-1/+1
Only the tree view honoured the limit, and only after loading the whole object. The default moves from unlimited to 10 MB so a fresh install never buffers a huge object whole. Zero still turns the limit off.
Render README markdown in the browserBryce Kwon-0/+3
cgit had no markdown support of its own, so a readme was rendered through an external python filter or not at all. Escaping the source and formatting it in cgit.js keeps the work in the browser like the blob highlighter, and the page stays readable as plain text without scripting.
Add enable-tree-group-dirs to list dirs firstBryce Kwon-0/+2
Gate the cache listing behind enable-cache-listBryce Kwon-0/+2
The ls_cache page printed the cache directory path and the urls other visitors had requested, with no gate at all.
Reorganise into source, assets and librariesBryce Kwon-0/+0
Everything the build generates now lands in build/, so a clean is a single remove and the source tree stays free of build output.