Skip to content

Commit 0f21b8f

Browse files
committed
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 <[email protected]>
1 parent 225d2d5 commit 0f21b8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/t6008-rev-list-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test_expect_success 'setup' '
2323
2424
: > super-file &&
2525
git add super-file &&
26-
git submodule add "$(pwd)" sub &&
26+
git -c protocol.file.allow=always submodule add "$(pwd)" sub &&
2727
git symbolic-ref HEAD refs/heads/super &&
2828
test_tick &&
2929
git commit -m super-initial &&

t/t6134-pathspec-in-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test_expect_success 'setup a submodule' '
99
: >pretzel/a &&
1010
git -C pretzel add a &&
1111
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 &&
1313
git commit -a -m "add submodule" &&
1414
git submodule deinit --all
1515
'

0 commit comments

Comments
 (0)