t/t6NNN: 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 only need to interact with submodules in a limited capacity have individual Git commands annotated with the appropriate configuration via `-c`. Signed-off-by: Taylor Blau <me@ttaylorr.com>

Taylor Blau committed Jul 29, 2022 at 15:21 UTC 0f21b8f468566b991eea60bb7bdf2fce9265e367
2 files changed +2 -2
t/t6008-rev-list-submodule.sh
+1 -1
@@ -23,7 +23,7 @@ test_expect_success 'setup' '
23
24 : > super-file &&
25 git add super-file &&
26 - git submodule add "$(pwd)" sub &&
26 + git -c protocol.file.allow=always submodule add "$(pwd)" sub &&
27 git symbolic-ref HEAD refs/heads/super &&
28 test_tick &&
29 git commit -m super-initial &&
t/t6134-pathspec-in-submodule.sh
+1 -1
@@ -9,7 +9,7 @@ test_expect_success 'setup a submodule' '
9 : >pretzel/a &&
10 git -C pretzel add a &&
11 git -C pretzel commit -m "add a file" -- a &&
12 - git submodule add ./pretzel sub &&
12 + git -c protocol.file.allow=always submodule add ./pretzel sub &&
13 git commit -a -m "add submodule" &&
14 git submodule deinit --all
15 '