From 958d9a8e03a204def87208c35d65c2c28be1b07f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 11:32:21 -1000 Subject: Copy the shared config for the cut description It repeated the sed that cgitrc_copy runs, only to add a repository after the copy. --- tests/t0101-index.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index 60bdd46..e227586 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -47,13 +47,12 @@ test_expect_success 'each css and js entry gets a link of its own' ' # The description limit counts bytes, so a cut has to land between # characters rather than leave half of one on the page. test_expect_success 'a cut description keeps whole characters' ' + cgitrc_copy descrc max-repodesc-length=10 && { - echo "max-repodesc-length=10" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc && echo "repo.url=mb" && echo "repo.path=$PWD/repos/foo/.git" && echo "repo.desc=日本語の説明文です" - } >descrc && + } >>descrc && cgit_ok descrc "url=" >tmp && grep ">日本語\.\.\." tmp ' -- cgit 2.12.1