From 41996a9fbe11a480a5adf266a6e3aea094317fd0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:06:45 -1000 Subject: Check the commit page's parent row The pattern also matched the commit row's link to itself, so the test passed with no parent row at all. --- tests/t0106-commit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/t0106-commit.sh') diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 9a0a7e1..4cf361f 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -8,7 +8,10 @@ test_description='Check content on commit page' test_expect_success 'generate foo/commit' 'cgit_url "foo/commit" >tmp' test_expect_success 'find tree link' 'grep "" tmp' -test_expect_success 'find parent link' 'grep -E "" tmp' +test_expect_success 'find parent link' ' + parent=$(git -C repos/foo rev-parse master~1) && + test_grep "parent
$parent" tmp +' test_expect_success 'find commit subject' ' grep "
commit 5<" tmp -- cgit 2.12.1