From df722a47683b29c152c04895f3e91ee6234f74f7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 16:43:43 -1000 Subject: Pair each absence check with what has to be there Every page ends in , the 404 for no repositories included, and an index, an error page or a page cut short lacks most things, so the path-less repository, the empty url, the page without an auth filter and the refused id each now show the page that was meant to render. --- tests/t0303-robustness.sh | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/tests/t0303-robustness.sh b/tests/t0303-robustness.sh index 65fbb53..f290609 100755 --- a/tests/t0303-robustness.sh +++ b/tests/t0303-robustness.sh @@ -34,9 +34,10 @@ test_expect_success 'a repository without a path answers 404' ' test_expect_success 'a repository without a path has no age on the index' ' mkdir -p "(null)/refs/heads" && >"(null)/refs/heads/master" && - cgit_rc nopathrc "url=" >tmp && - grep "" tmp && - ! grep "