[stable-2.14] Fix ansible-test-git test for newer git versions.

The latest versions of `git` include a fix for CVE-2022-39253. The fix blocks the file protocol by default.

See: 45c9f05c44/Documentation/RelNotes/2.30.6.txt
(cherry picked from commit 4202acb41b)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/79220/head
Matt Clay 2 years ago
parent 418b92b323
commit 41159432d1

@ -45,7 +45,7 @@ cd "${GIT_TOP_LEVEL}"
git init
# add submodule
git submodule add "${WORK_DIR}/sub" "${SUBMODULE_DST}"
git -c protocol.file.allow=always submodule add "${WORK_DIR}/sub" "${SUBMODULE_DST}"
# prepare for tests
expected="${WORK_DIR}/expected.txt"

Loading…
Cancel
Save