Diff options
Diffstat (limited to 'tests/t0202-submodule-links.sh')
-rwxr-xr-xtests/t0202-submodule-links.sh4
1 file changed, 2 insertions, 2 deletions
diff --git a/tests/t0202-submodule-links.sh b/tests/t0202-submodule-links.sh
index 2cbbba7..a5810a0 100755
--- a/tests/t0202-submodule-links.sh
+++ b/tests/t0202-submodule-links.sh
@@ -55,7 +55,7 @@ test_expect_success 'set up a parent repo with submodules' '
'
test_expect_success 'generate subparent/tree' '
- CGIT_CONFIG="$PWD/subrc" QUERY_STRING="url=subparent/tree/" cgit >tmp
+ cgit_rc subrc "url=subparent/tree/" >tmp
'
test_expect_success 'an ssh url served here links to the local repo' '
@@ -93,7 +93,7 @@ test_expect_success 'an unresolvable url stays unlinked with a tooltip' '
test_expect_success 'the links stay off without the flag' '
sed "/enable-gitmodules-links/d" subrc >subrcoff &&
- CGIT_CONFIG="$PWD/subrcoff" QUERY_STRING="url=subparent/tree/" cgit >tmp &&
+ cgit_rc subrcoff "url=subparent/tree/" >tmp &&
! grep "subtarget/tree" tmp &&
grep "class=.ls-mod.>local-ssh</span>" tmp
'