Skip to content

Commit d9fcaee

Browse files
committed
t5537: prepare for changing protocol.file.allow
Explicitly cloning over the "file://" protocol in t5537 in preparation for merging a security release which will change the default value of this configuration to be "user". Signed-off-by: Taylor Blau <[email protected]>
1 parent 541607d commit d9fcaee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/t5537-fetch-shallow.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ test_expect_success 'fetch --update-shallow into a repo with submodules' '
175175
test_expect_success 'fetch --update-shallow a commit that is also a shallow point into a repo with submodules' '
176176
test_when_finished "rm -rf repo-with-sub" &&
177177
git init repo-with-sub &&
178-
git -C repo-with-sub submodule add ../a-submodule a-submodule &&
178+
git -c protocol.file.allow=always -C repo-with-sub \
179+
submodule add ../a-submodule a-submodule &&
179180
git -C repo-with-sub commit -m "added submodule" &&
180181
181182
SHALLOW=$(cat shallow/.git/shallow) &&

0 commit comments

Comments
 (0)