From 6f6d79e7e5339a886e93776469cfd7df1e3b6ba4 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 16:53:18 -1000 Subject: Drop the loose directory chain bound The count was bounded only from above, and loosely, so a page listing no directories passed, as would a limit of 16. t0104's long directory chain test already pins the bound exactly. --- tests/t0303-robustness.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/t0303-robustness.sh b/tests/t0303-robustness.sh index 7f05dcc..49e88ad 100755 --- a/tests/t0303-robustness.sh +++ b/tests/t0303-robustness.sh @@ -756,19 +756,6 @@ test_expect_success 'a symlink whose target is a large blob is listed without it test_grep ! "aaaaaaaaaa" tmp ' -test_expect_success 'a chain of single directories is followed a bounded number of levels' ' - ( - cd repos/rob && - deep=$(printf "d/%.0s" $(seq 1 40))leaf && - mkdir -p $(dirname $deep) && - echo x >$deep && - git add d && - git commit -m deep - ) && - cgit_rc robrc "url=rob/tree/" >tmp && - test $(grep -o "class=.ls-dir." tmp | wc -l) -le 17 -' - # The line has to carry the read error rather than the flag ferror returns. # A system may open a directory and fail the read, or refuse the open, so the # same error text is expected from either path. -- cgit 2.12.1