aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5537-fetch-shallow.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-10-17 15:46:09 -0700
committerJunio C Hamano <gitster@pobox.com>2022-10-17 15:46:09 -0700
commit9c32cfb49c60fa8173b9666db02efe3b45a8522f (patch)
tree0f74dce4f7278f25cd61bd87baeb400f127ac1b1 /t/t5537-fetch-shallow.sh
parent4732897cf0a255a23dca9e97b65cea40cd06c5a8 (diff)
parentd5b41391a472dcf9486055fd5b8517f893e88daf (diff)
downloadgit-9c32cfb49c60fa8173b9666db02efe3b45a8522f.tar.gz
Sync with v2.38.1
Diffstat (limited to 't/t5537-fetch-shallow.sh')
-rwxr-xr-xt/t5537-fetch-shallow.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t5537-fetch-shallow.sh b/t/t5537-fetch-shallow.sh
index 10e9a7ff26..37f7547a4c 100755
--- a/t/t5537-fetch-shallow.sh
+++ b/t/t5537-fetch-shallow.sh
@@ -162,6 +162,8 @@ test_expect_success 'fetch --update-shallow' '
'
test_expect_success 'fetch --update-shallow into a repo with submodules' '
+ test_config_global protocol.file.allow always &&
+
git init a-submodule &&
test_commit -C a-submodule foo &&
@@ -175,7 +177,8 @@ test_expect_success 'fetch --update-shallow into a repo with submodules' '
test_expect_success 'fetch --update-shallow a commit that is also a shallow point into a repo with submodules' '
test_when_finished "rm -rf repo-with-sub" &&
git init repo-with-sub &&
- git -C repo-with-sub submodule add ../a-submodule a-submodule &&
+ git -c protocol.file.allow=always -C repo-with-sub \
+ submodule add ../a-submodule a-submodule &&
git -C repo-with-sub commit -m "added submodule" &&
SHALLOW=$(cat shallow/.git/shallow) &&