diff options
author | Matt Clay <matt@mystile.com> | 2022-10-25 09:34:54 -0700 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2022-10-25 10:03:26 -0700 |
commit | a61016fb97721cffbbbdc9f74600e6038c2f4036 (patch) | |
tree | d872242e14fb86a6b99e5c4874b257227517e65c | |
parent | 2d6747bcbfda8bbfa0a57d3493cccf1362150f47 (diff) | |
download | ansible-a61016fb97721cffbbbdc9f74600e6038c2f4036.tar.gz |
[stable-2.13] 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: https://github.com/git/git/blob/45c9f05c44b1cb6bd2d6cb95a22cf5e3d21d5b63/Documentation/RelNotes/2.30.6.txt
(cherry picked from commit 4202acb41b4ee42c5e9e52a07ac56d49045ec943)
Co-authored-by: Matt Clay <matt@mystile.com>
-rwxr-xr-x | test/integration/targets/ansible-test/collection-tests/git-common.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-test/collection-tests/git-common.bash b/test/integration/targets/ansible-test/collection-tests/git-common.bash index 5055f2e8ab..340b311f30 100755 --- a/test/integration/targets/ansible-test/collection-tests/git-common.bash +++ b/test/integration/targets/ansible-test/collection-tests/git-common.bash @@ -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" |