AgeCommit message (Collapse)AuthorLines
Ask for a url through cgit_url everywhereBryce Kwon-19/+19
Move the later tests to the config writersBryce Kwon-320/+182
The one-line request wrappers go with them. Configs with several repositories, a key out of place on purpose, the cache on or no repository of their own stay written out.
Add the shared config writers and cgit_rcBryce Kwon-275/+188
The helpers are named by kind. cgitrc_repo and cgitrc_copy write the config file named first, and cgit_url, cgit_query and cgit_rc run cgit, each named after what it is handed first. A repository copies its defaults from the globals read before its repo.url, so cgitrc_repo places every setting itself, and a global can no longer land where it silently stops applying. The t00xx and t01xx files move to them here.
Show the column fixture's commits like the othersBryce Kwon-1/+1
Drop test lines that repeat what came beforeBryce Kwon-6/+2
The download row was already matched on the same tag page, no fold can sit between the message and the signature the check requires, and the submodule row is the one the test before extracted.
Check the summary's branch, tags and clone url onceBryce Kwon-5/+0
bar's copies read the same page code as foo's, and the clone url row test that follows matches bar's url in full.
Leave the escape hook check to the tree testsBryce Kwon-11/+4
t0104 checks the same span, and what it holds, on the tree and blame pages, and t0502 checks it on a highlighted page.
Skip the shared fixtures where nothing reads themBryce Kwon-0/+2
t0004 reads only the documents, and t0005 builds its own repository and configs, so each run of either built five repositories for none.
Write the snapshot header and content checks onceBryce Kwon-21/+19
Leave the snapshot and feed tool checks to test-libBryce Kwon-22/+5
A lazy prerequisite is checked only when a test asks for it, and test-lib names the missing one on every skipped test, so the skip notes go too. test-lib already defines UNZIP and the unzip it checks. The test that unpacks a tag's tar.gz with gzip now asks for GZIP like every other one that does.
Cut test comments that restate the code beside themBryce Kwon-6/+1
Correct the test comments that went staleBryce Kwon-10/+10
Trim the tidy check down to what it doesBryce Kwon-17/+3
Nothing sets NO_TIDY_WARNINGS, and a warning never fails the check, so the knob only quieted the output of a verbose run.
Drop the exit lines that follow test_doneBryce Kwon-6/+0
test_done ends the script on every path, skip_all included.
Describe a negative section-from-path in cgitrcBryce Kwon-2/+3
Spell url in the Lua comments as the docs doBryce Kwon-16/+16
Say cgit pages carry no expiry, not no headersBryce Kwon-3/+3
Behind an auth filter every page carries Cache-Control: private and the login page no-store, so only the missing expiry holds on every site.
Describe the cache's scan files and its lockingBryce Kwon-7/+13
The background rebuild points its stderr at /dev/null so the web server does not wait on it, which is why its failures never reach the log.
Correct two fallbacks the sample config statesBryce Kwon-3/+3
cgit_snapshot_prefix falls back to the basename of the repository url, and print_object sends a binary blob as application/octet-stream.
Name the pages the highlighter runs onBryce Kwon-1/+1
Point the source-filter sample at its notesBryce Kwon-3/+2
Correct what a negative section-from-path dropsBryce Kwon-2/+3
section_slash counts the repository's own directory as the first element back from the end, so "-1" takes nothing above it away.
Name module-link.<path> among the guarded keysBryce Kwon-5/+5
Write five compound terms one way in the docsBryce Kwon-12/+12
Each takes the form its option name or most of the prose already uses, as in case-sensitive-sort and side-by-side-diffs.
Spell HTML in capitals as most of the docs doBryce Kwon-5/+5
The head section loses its capitals too, since HEAD elsewhere in the manual is git's.
Spell url the way the tree mostly doesBryce Kwon-22/+22
Names keep their own spelling, so the URL trailer and CGIT_REPO_URL stay in capitals.
Keep the repository title in one static bufferBryce Kwon-2/+6
Free the revision walks' arguments and stateBryce Kwon-6/+13
Spell non-zero the way the rest of the tree doesBryce Kwon-1/+1
Drop a query value check that cannot fireBryce Kwon-3/+0
Check a ref path without copying itBryce Kwon-10/+4
Share one lock-file helper between the cachesBryce Kwon-64/+83
Keep the script name local to prepare_contextBryce Kwon-5/+1
Print line number anchors through one helperBryce Kwon-39/+31
Print the commit and tag dates through one helperBryce Kwon-10/+21
Print each person through one helperBryce Kwon-44/+30
The log, refs and tag pages no longer open a filter of their own, so they stop including filter.h.
Refuse pathspec magic through one helperBryce Kwon-21/+19
Start each history walk through one helperBryce Kwon-18/+20
Order shared.c the way shared.h declares itBryce Kwon-147/+144
The header's blob and pathspec checks move after the diff wrappers so each group reads as one, and each static helper now sits directly above its only user.
Free commit and tag records beside their parsersBryce Kwon-34/+30
With the frees gone from shared.h, five page files need nothing else from it, so they stop including it.
Keep the cache's trailing slash helper in cache.cBryce Kwon-10/+12
Move cgit.c's own helpers out of shared.cBryce Kwon-86/+78
Move the mimetype lookup into ui-plain.cBryce Kwon-52/+50
Move the ref list code into ui-refs.cBryce Kwon-88/+85
Move the die wrappers into filter.cBryce Kwon-34/+30
Ask for every path below the about page in one testBryce Kwon-22/+12
All of them stop at the same early return in about_fn, so each now gets the status, the html error page and a clean log.
Name the missing home without searching for oneBryce Kwon-10/+1
strace logs a call that names the path whether or not it succeeds, so a home that existed would still be caught, and cgit unsets HOME before git runs anyway.
Work out each gitlink's target onceBryce Kwon-11/+2
Test bodies run in the main shell, so the target named in the fixture reaches every check that greps for it.
Serve both readme escaping checks from one configBryce Kwon-16/+9
Ask each page that sorts odd branches in one loopBryce Kwon-23/+8