From dc91c3592796ab24997addf31c64b76bd6800a8b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:47:27 -1000 Subject: Test subject links on the commit page --- tests/t0106-commit.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/t0106-commit.sh') diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 0cfc5d3..6d08645 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -16,6 +16,13 @@ test_expect_success 'find parent link' ' test_grep "parent
$parent" tmp ' +test_expect_success 'subject links name a parent by its subject' ' + cgitrc_copy subjectrc enable-subject-links=1 && + parent=$(git -C repos/foo rev-parse master~1) && + cgit_ok subjectrc "url=foo/commit" >tmp && + test_grep "parent
commit 4" tmp +' + test_expect_success 'find commit subject' ' grep "
commit 5<" tmp ' -- cgit 2.12.1