Skip to content

Commit

Permalink
t5537: prepare for changing protocol.file.allow
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ttaylorr committed Oct 6, 2022
1 parent 541607d commit d9fcaee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/t5537-fetch-shallow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ test_expect_success 'fetch --update-shallow into a repo with submodules' '
test_expect_success 'fetch --update-shallow a commit that is also a shallow point into a repo with submodules' '
test_when_finished "rm -rf repo-with-sub" &&
git init repo-with-sub &&
git -C repo-with-sub submodule add ../a-submodule a-submodule &&
git -c protocol.file.allow=always -C repo-with-sub \
submodule add ../a-submodule a-submodule &&
git -C repo-with-sub commit -m "added submodule" &&
SHALLOW=$(cat shallow/.git/shallow) &&
Expand Down

0 comments on commit d9fcaee

Please sign in to comment.