From 78d6d1dddfc197ab731aaec8461e199209c63aea Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 1 Aug 2026 21:35:12 -1000 Subject: Drop the help tab and its built-in guide --- tests/t0200-security.sh | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'tests') diff --git a/tests/t0200-security.sh b/tests/t0200-security.sh index 425708e..de248ca 100644 --- a/tests/t0200-security.sh +++ b/tests/t0200-security.sh @@ -124,31 +124,6 @@ test_expect_success 'tree groups directories before files' ' test "$dirline" -lt "$fileline" ' -# --- Fork feature: built-in help page ---------------------------------------- -test_expect_success 'help tab appears on the index by default' ' - cgit_query "" >tmp && - grep "p=help" tmp -' - -test_expect_success 'help page renders the workflow guide' ' - cgit_query "p=help" >tmp && - grep "Compare two points in history" tmp -' - -test_expect_success 'enable-help=0 hides the tab and the page' ' - { - echo "virtual-root=/" && - echo "cache-size=0" && - echo "enable-help=0" && - echo "repo.url=sec" && - echo "repo.path=$PWD/repos/sec/.git" - } >nohelprc && - CGIT_CONFIG="$PWD/nohelprc" QUERY_STRING="" cgit >tmp && - ! grep "p=help" tmp && - CGIT_CONFIG="$PWD/nohelprc" QUERY_STRING="p=help" cgit >tmp && - grep "Status: 404" tmp -' - # --- Side-by-side diff percent-encodes a file path into its links ----------- # A file name is repository content and may contain a quote, which would # otherwise break out of the href attribute of the line-number links. -- cgit v2.8.0