From 0d84989bd7d3daef49319922e9f5f19d28223433 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 11:44:33 -1000 Subject: Test the author and age of a lightweight tag row --- tests/t0102-summary.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/t0102-summary.sh b/tests/t0102-summary.sh index bdf3a36..b31d476 100755 --- a/tests/t0102-summary.sh +++ b/tests/t0102-summary.sh @@ -218,4 +218,14 @@ test_expect_success 'the tag table heads its second column for what it holds' ' test_grep "[a-z]*" tmp ' +# A lightweight tag has no tagger, so its row takes the author and the date +# of the commit it names. +test_expect_success 'a lightweight tag row shows its commit author and age' ' + mkrepo repos/light 1 && + git -C repos/light tag light && + cgitrc_repo lightrc light && + cgit_ok lightrc "url=light/refs/tags" >tmp && + test_grep "light]*>commit [0-9a-f]*\.\.\.A U Thor