t/t9NNN: allow local submodules

To prepare for the default value of `protocol.file.allow` to change to "user", ensure tests that rely on local submodules can initialize them over the file protocol. Tests that interact with submodules a handful of times use `test_config_global`. Signed-off-by: Taylor Blau <me@ttaylorr.com>

Taylor Blau committed Jul 29, 2022 at 15:21 UTC f4a32a550f9d40471fb42ed1e5c8612dfe4a83b1
2 files changed +3
t/t9304-fast-import-marks.sh
+1
@@ -25,6 +25,7 @@ test_expect_success 'import with large marks file' '
25 '
26
27 test_expect_success 'setup dump with submodule' '
28 + test_config_global protocol.file.allow always &&
29 git submodule add "$PWD" sub &&
30 git commit -m "add submodule" &&
31 git fast-export HEAD >dump
t/t9350-fast-export.sh
+2
@@ -265,6 +265,7 @@ test_expect_success 'signed-tags=warn-strip' '
265
266 test_expect_success 'setup submodule' '
267
268 + test_config_global protocol.file.allow always &&
269 git checkout -f master &&
270 mkdir sub &&
271 (
@@ -290,6 +291,7 @@ test_expect_success 'setup submodule' '
291
292 test_expect_success 'submodule fast-export | fast-import' '
293
294 + test_config_global protocol.file.allow always &&
295 SUBENT1=$(git ls-tree master^ sub) &&
296 SUBENT2=$(git ls-tree master sub) &&
297 rm -rf new &&