From b57a29fd9dc49364890046be8df07eb77fa04155 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 22:17:13 -1000 Subject: Ship the example tracker links commented out An unedited copy sent every #123, Closes: and Bug: mark to bugs.example.com, a link that is wrong for every site. --- tests/t0503-link-commits.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'tests/t0503-link-commits.sh') diff --git a/tests/t0503-link-commits.sh b/tests/t0503-link-commits.sh index d977517..fc7d618 100755 --- a/tests/t0503-link-commits.sh +++ b/tests/t0503-link-commits.sh @@ -1,10 +1,10 @@ #!/bin/sh # Checks link-commits.lua, the shipped commit-filter, whose configuration as -# shipped links bare object names to ./?id= and issue marks like #123 to -# bugs.example.com. The unit checks cover the matching rules under every -# suitable standalone Lua, and a commit whose message carries one of each is -# then rendered through cgit itself. +# shipped links bare object names to ./?id= and leaves issue marks like #123 +# as text until a tracker is set up. The unit checks cover the matching rules +# under every suitable standalone Lua, and a commit whose message carries one +# of each is then rendered through cgit itself. test_description='Check the shipped link-commits extension' CGIT_TEST_NO_CREATE_REPOS=YesPlease @@ -46,9 +46,10 @@ test_expect_success 'point cgit at it through the commit filter' ' EOF ' -test_expect_success CGIT_LUA 'the issue mark links out on the commit page' ' +test_expect_success CGIT_LUA 'the issue mark stays text on the commit page' ' cgit_url "linky/commit/" >tmp && - grep "bugs.example.com/?bug=123.>#123" tmp + grep "fix #123 near" tmp && + ! grep "bugs.example.com" tmp ' test_expect_success CGIT_LUA 'the object name links to its own page' ' -- cgit