Diff options
Diffstat (limited to 'tests/t0103-log.sh')
-rwxr-xr-xtests/t0103-log.sh10
1 file changed, 2 insertions, 8 deletions
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 ">日本語の説\.\.\.</a>" 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 "<th scope=.col. aria-label=.Graph.></th>" tmp