From 3e20dde8a2bf9bded02cd91290cbb0801dc01157 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:08:49 -1000 Subject: Check the tag message line by line The check removed every newline before matching, so a body that kept the blank line after the subject read the same, and the page would have shown that line under white-space pre-wrap. --- tests/t0113-tag.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/t0113-tag.sh b/tests/t0113-tag.sh index 8aea27e..19b2283 100755 --- a/tests/t0113-tag.sh +++ b/tests/t0113-tag.sh @@ -34,8 +34,9 @@ test_expect_success 'the object row names the full commit id' ' ' test_expect_success 'the message follows with no blank line before the body' ' - tr -d "\n" flat && - grep "
Annotated tag
Release notes overtwo lines.
" flat + cgit_ok_url "foo/tag/&h=v1.0" >tmp && + test_grep "
Annotated tag
Release notes over$" tmp && + test_grep "^two lines\.$" tmp ' test_expect_success 'a lightweight tag gets the shorter table' ' -- cgit 2.12.1