From 732653ff944286345091db08e33649b3e3a49da4 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:57:10 -0700 Subject: Ask for a url through cgit_url everywhere --- tests/t0107-diff.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/t0107-diff.sh') diff --git a/tests/t0107-diff.sh b/tests/t0107-diff.sh index 6710cec..a3948df 100755 --- a/tests/t0107-diff.sh +++ b/tests/t0107-diff.sh @@ -26,9 +26,9 @@ test_expect_success 'find added line' ' # the commit and patch pages quote it, on either side of the diff. test_expect_success 'a tree on either side is named as the request gave it' ' tree=$(git -C repos/foo rev-parse --short HEAD^{tree}) && - cgit_query "url=foo/diff/&id=$tree" >tmp && + cgit_url "foo/diff/&id=$tree" >tmp && grep "
Not a commit: $tree
" tmp && - cgit_query "url=foo/diff/&id2=$tree" >tmp && + cgit_url "foo/diff/&id2=$tree" >tmp && grep "
Not a commit: $tree
" tmp ' @@ -58,7 +58,7 @@ test_expect_success 'ssdiff numbers a comma-less hunk from its real line' ' ' test_expect_success 'ssdiff still numbers a hunk that carries a length' ' - cgit_query "url=foo/diff&dt=1" >tmp && + cgit_url "foo/diff&dt=1" >tmp && grep "#n1.>1" tmp ' -- cgit 2.11.1