From 67f430f3ce39dc09fadbccec1919bf7e5be85911 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 24 Oct 2026 13:01:23 -1000 Subject: Keep each snapshot link in one piece On a narrow screen the download column broke a snapshot name at a hyphen or left its signature link alone on the next line. --- tests/t0110-snapshot.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tests/t0110-snapshot.sh') diff --git a/tests/t0110-snapshot.sh b/tests/t0110-snapshot.sh index c38b3c3..bec0e3d 100755 --- a/tests/t0110-snapshot.sh +++ b/tests/t0110-snapshot.sh @@ -202,4 +202,26 @@ test_expect_success 'a signature past max-blob-size is refused' ' grep "^Status: 413" tmp ' +test_expect_success 'a snapshot and its signature are linked as one unit' ' + test_create_repo repos/signed && + ( + cd repos/signed && + echo one >file && + git add file && + git commit -m one && + git tag one && + sig=$(echo signature | git hash-object -w --stdin) && + git notes --ref signatures/tar.gz add -C $sig one + ) && + { + echo "virtual-root=/" && + echo "cache-size=0" && + echo "snapshots=tar.gz" && + echo "repo.url=signed" && + echo "repo.path=$PWD/repos/signed/.git" + } >signedrc && + CGIT_CONFIG="$PWD/signedrc" QUERY_STRING="url=signed/refs/" cgit >tmp && + grep "signed-one.tar.gz (sig)" tmp +' + test_done -- cgit 2.12.1