This path is a submodule:
sibling" tmp
'
# A template is the site saying where its submodules live, so it wins over
# what .gitmodules would give, and a template for one path wins over both.
test_expect_success 'the module-link templates win over .gitmodules' '
sub=$(git -C repos/subtarget rev-parse HEAD) &&
cgitrc_repo modrc subparent enable-gitmodules-links=1 "module-link=/mods/%s/%s" \
"repo.module-link.sibling=/pinned/%s" &&
cgit_ok modrc "url=subparent/tree/" >tmp &&
grep "
local-ssh" tmp &&
grep "
sibling" tmp &&
! grep "subtarget/tree" tmp
'
test_expect_success 'the links stay off without the flag' '
cgitrc_repo suboffrc subparent &&
cgit_ok suboffrc "url=subparent/tree/" >tmp &&
! grep "subtarget/tree" tmp &&
grep "class=.ls-mod.>local-ssh" tmp
'
test_done