From a3bb7c69c0295cb2fc7909559456e798b222fccd Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:56:59 -0700 Subject: Add the shared config writers and cgit_rc 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. --- tests/t0006-nolua.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/t0006-nolua.sh') diff --git a/tests/t0006-nolua.sh b/tests/t0006-nolua.sh index 86ae47d..cd35fca 100755 --- a/tests/t0006-nolua.sh +++ b/tests/t0006-nolua.sh @@ -23,12 +23,7 @@ test_expect_success 'the binary reports no Lua' ' ' test_expect_success 'it serves a page' ' - { - echo "virtual-root=/" && - echo "cache-size=0" && - echo "repo.url=foo" && - echo "repo.path=$PWD/repos/foo/.git" - } >plainrc && + cgitrc_repo plainrc foo && nolua_query plainrc "url=foo/log/" >tmp && grep "^Status: 200" tmp && grep ">commit 5" tmp -- cgit 2.11.1