summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2022-10-25 09:34:54 -0700
committerMatt Clay <matt@mystile.com>2022-10-25 10:01:09 -0700
commit41159432d13da11731fd531615dbff6df76b093d (patch)
treefdf28dbafe54f38909cd6fa62762294bd3640443
parent418b92b32327f69c29fa47c72641053dbc3b86f0 (diff)
downloadansible-41159432d13da11731fd531615dbff6df76b093d.tar.gz
[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: 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-xtest/integration/targets/ansible-test-git/collection-tests/git-common.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-test-git/collection-tests/git-common.bash b/test/integration/targets/ansible-test-git/collection-tests/git-common.bash
index 5055f2e8ab..340b311f30 100755
--- a/test/integration/targets/ansible-test-git/collection-tests/git-common.bash
+++ b/test/integration/targets/ansible-test-git/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"