Skip to content

Commit f4a32a5

Browse files
committed
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 <[email protected]>
1 parent 0d3beb7 commit f4a32a5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

t/t9304-fast-import-marks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test_expect_success 'import with large marks file' '
2525
'
2626

2727
test_expect_success 'setup dump with submodule' '
28+
test_config_global protocol.file.allow always &&
2829
git submodule add "$PWD" sub &&
2930
git commit -m "add submodule" &&
3031
git fast-export HEAD >dump

t/t9350-fast-export.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ test_expect_success 'signed-tags=warn-strip' '
265265

266266
test_expect_success 'setup submodule' '
267267
268+
test_config_global protocol.file.allow always &&
268269
git checkout -f master &&
269270
mkdir sub &&
270271
(
@@ -290,6 +291,7 @@ test_expect_success 'setup submodule' '
290291

291292
test_expect_success 'submodule fast-export | fast-import' '
292293
294+
test_config_global protocol.file.allow always &&
293295
SUBENT1=$(git ls-tree master^ sub) &&
294296
SUBENT2=$(git ls-tree master sub) &&
295297
rm -rf new &&

0 commit comments

Comments
 (0)