From 469b3eaee5139e80aa888e78efb0a7d5a4a9837b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 16:39:51 -1000 Subject: Follow the link from an outer tag to its inner one The test opened the inner tag by id and never looked at the outer tag's page or the link the title is about. --- tests/t0303-robustness.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/t0303-robustness.sh b/tests/t0303-robustness.sh index 34c0f22..f14d9dd 100755 --- a/tests/t0303-robustness.sh +++ b/tests/t0303-robustness.sh @@ -610,11 +610,13 @@ test_expect_success 'a disk readme in the repository directory serves no sibling ' test_expect_success 'a tag pointing at a tag links the inner tag by id' ' - git -C repos/rob -c tag.gpgsign=false tag -a -m outer outer ann && + git -C repos/rob tag -a -m outer outer ann && inner=$(git -C repos/rob rev-parse ann) && - cgit_rc robrc "url=rob/tag/&id=$inner" >tmp && - grep "^Status: 200" tmp && - grep "tagged object" tmp + cgit_ok robrc "url=rob/tag/&h=outer" >tmp && + test_grep "tagged objecttag $inner" tmp && + cgit_ok robrc "url=rob/tag/&h=outer&id=$inner" >tmp && + test_grep "tag name$inner " tmp && + test_grep "
note
" tmp ' test_expect_success 'the dumb transport serves an empty repository' ' -- cgit 2.12.1