From 9d955ba50764760d7a4eb223fd6aa98f9f14ed60 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 18:19:09 -1000 Subject: Add blame to the source filter and line number docs --- tests/t0201-filters.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/t0201-filters.sh b/tests/t0201-filters.sh index 07db677..1dd0910 100755 --- a/tests/t0201-filters.sh +++ b/tests/t0201-filters.sh @@ -65,6 +65,14 @@ do " done +test_expect_success 'the blame page goes through the source filter too' ' + echo "enable-blame=1" >blamerc && + sed "s/^cache-size=.*/cache-size=0/" cgitrc >>blamerc && + CGIT_CONFIG="$PWD/blamerc" QUERY_STRING="url=filter-exec/blame/a%2bb" cgit >tmp && + grep "" tmp && + grep "a+b HELLO$" tmp +' + # A readme read at another branch links into the tree at that branch, which # the filter is told as the query to follow a path with. test_expect_success 'the about filter gets the tree url at the readme branch' ' -- cgit