summaryrefslogtreecommitdiffstats
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-09-30 22:47:00 +0200
committerTaylor Blau <me@ttaylorr.com>2022-10-01 06:31:34 +0200
commitc193e6bbee370a2fc4caae81bf4a2c7be122bc3f (patch)
treee0ac322ebb770a7b1491b0e729a058f2a13f2dd6 /t/t5516-fetch-push.sh
parentt3207: prepare for changing protocol.file.allow (diff)
downloadgit-c193e6bbee370a2fc4caae81bf4a2c7be122bc3f.tar.xz
git-c193e6bbee370a2fc4caae81bf4a2c7be122bc3f.zip
t5516: prepare for changing protocol.file.allow
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>
Diffstat (limited to '')
-rwxr-xr-xt/t5516-fetch-push.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 4dfb080433..6d5702fd0e 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -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 &&