]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5537: 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>
Thu, 6 Oct 2022 00:19:15 +0000 (20:19 -0400)
Explicitly cloning over the "file://" protocol in t5537 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/t5537-fetch-shallow.sh

index 10e9a7ff2641897b6a666b1e78eefb81e1c5b7d4..dc7a8242547ffb658d197894f4080330bf69031a 100755 (executable)
@@ -175,7 +175,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) &&