]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t3206: 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:08 +0000 (20:19 -0400)
Explicitly cloning over the "file://" protocol in t3206 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/t3206-range-diff.sh

index d12e4e4cc6c64073fcef4e71ba6a9c52ce8af1dc..03d4df2359e01323eebcd1ac6a90632682296b20 100755 (executable)
@@ -782,7 +782,7 @@ test_expect_success 'submodule changes are shown irrespective of diff.submodule'
        sub_oid3=$(git -C sub-repo rev-parse HEAD) &&
 
        git checkout -b main-sub topic &&
-       git submodule add ./sub-repo sub &&
+       git -c protocol.file.allow=always submodule add ./sub-repo sub &&
        git -C sub checkout --detach sub-first &&
        git commit -m "add sub" sub &&
        sup_oid1=$(git rev-parse --short HEAD) &&