From fe5d418efecaf7349e3c102695627bc790a8dc6d Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:16:16 -1000 Subject: Test that blame is refused while disabled --- tests/t0104-tree.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh index 03fd9be..2f77b97 100755 --- a/tests/t0104-tree.sh +++ b/tests/t0104-tree.sh @@ -91,6 +91,12 @@ test_expect_success 'the blame stripes are as wide as the escaped line' ' grep "^ \\{31\\}" tmp ' +test_expect_success 'blame is refused unless enabled' ' + cgit_url "bar/blame/file-1" >tmp && + test_grep "^Status: 403" tmp && + test_grep "
Blame is disabled
" tmp +' + # Blame takes a file alone, so on its page the crumbs for the folders above # the file lead to the tree. test_expect_success 'the folder crumbs of a blame page lead to the tree' ' -- cgit 2.12.1