Skip to content

Commit 7de0c30

Browse files
committed
t/lib-submodule-update.sh: allow local submodules
To prepare for changing the default value of `protocol.file.allow` to "user", update the `prolog()` function in lib-submodule-update to allow submodules to be cloned over the file protocol. This is used by a handful of submodule-related test scripts, which themselves will have to tweak the value of `protocol.file.allow` in certain locations. Those will be done in subsequent commits. Signed-off-by: Taylor Blau <[email protected]>
1 parent 6f054f9 commit 7de0c30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/lib-submodule-update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ test_git_directory_exists () {
196196
# the submodule repo if it doesn't exist and configures the most problematic
197197
# settings for diff.ignoreSubmodules.
198198
prolog () {
199+
test_config_global protocol.file.allow always &&
199200
(test -d submodule_update_repo || create_lib_submodule_repo) &&
200201
test_config_global diff.ignoreSubmodules all &&
201202
test_config diff.ignoreSubmodules all

0 commit comments

Comments
 (0)