From 10a95cb70c5872d40b6f3ad15734b68978f779fd Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:58:23 -0700 Subject: Write the remaining config copies with cgitrc_copy --- tests/t0103-log.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'tests/t0103-log.sh') diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh index b789ca4..9796394 100755 --- a/tests/t0103-log.sh +++ b/tests/t0103-log.sh @@ -86,19 +86,13 @@ test_expect_success 'the pager of a followed log keeps the name followed' ' test_expect_success 'a cut subject keeps whole characters' ' git -C repos/foo commit --allow-empty -m "日本語の説明文です日本語の説明文です" && - { - echo "max-message-length=20" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc - } >subjectrc && + cgitrc_copy subjectrc max-message-length=20 && cgit_rc subjectrc "url=foo/log/" >tmp && grep ">日本語の説\.\.\." tmp ' test_expect_success 'the log draws the commit graph when enabled' ' - { - echo "enable-commit-graph=1" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc - } >graphrc && + cgitrc_copy graphrc enable-commit-graph=1 && cgit_rc graphrc "url=foo/log/" >tmp && grep "class=.commitgraph." tmp && grep "" tmp -- cgit