From 7721ec50853daaafd2999337d9ae198abcea9a1c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Tue, 15 Sep 2026 18:05:47 -1000 Subject: Lay the tag table out like the commit table --- tests/t0113-tag.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100755 tests/t0113-tag.sh (limited to 'tests/t0113-tag.sh') diff --git a/tests/t0113-tag.sh b/tests/t0113-tag.sh new file mode 100755 index 0000000..12ad1b4 --- /dev/null +++ b/tests/t0113-tag.sh @@ -0,0 +1,46 @@ +#!/bin/sh + +# The tag page. An annotated tag gets the same three column table as the +# commit page, with the tagger and date on one row and the tag, object and +# download rows spanning the rest, and its message follows with no blank +# line between subject and body. A lightweight tag gets the shorter table. + +test_description='Check content on tag page' +. ./setup.sh + +test_expect_success 'create an annotated and a lightweight tag' ' + ( + cd repos/foo && + git tag -a -m "Annotated tag + +Release notes over +two lines." v1.0 && + git tag light + ) +' + +test_expect_success 'generate foo/tag/?h=v1.0' 'cgit_url "foo/tag/&h=v1.0" >tmp' + +test_expect_success 'find the tagger row with its date' ' + grep "taggerC O Mitter <committer@example.com>