]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5516: prepare for changing protocol.file.allow
authorTaylor Blau <me@ttaylorr.com>
Fri, 30 Sep 2022 20:47:00 +0000 (16:47 -0400)
committerTaylor Blau <me@ttaylorr.com>
Sat, 1 Oct 2022 04:31:34 +0000 (00:31 -0400)
Explicitly cloning over the "file://" protocol in t5516 in preparation
for merging a security release which will change the default value of
this configuration to be "user".

Signed-off-by: Taylor Blau <me@ttaylorr.com>
t/t5516-fetch-push.sh

index 4dfb080433e0a0bb95a4547c83618a6b3708ee08..6d5702fd0e557345c8846ce0b309fb55bc98f4c4 100755 (executable)
@@ -216,6 +216,7 @@ test_expect_success 'push with negotiation proceeds anyway even if negotiation f
 test_expect_success 'push with negotiation does not attempt to fetch submodules' '
        mk_empty submodule_upstream &&
        test_commit -C submodule_upstream submodule_commit &&
+       test_config_global protocol.file.allow always &&
        git submodule add ./submodule_upstream submodule &&
        mk_empty testrepo &&
        git push testrepo $the_first_commit:refs/remotes/origin/first_commit &&