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:08:34 -0700
commit3322ba015fa44a1163ab8321c526464122d914e2 (patch)
tree93cccdc0f56a308d2d49f6da71266a87b93f6eae
parent01fde4baeae04a45847253d744453f681eda11b0 (diff)
downloadansible-3322ba015fa44a1163ab8321c526464122d914e2.tar.gz
[stable-2.12] 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/collection-tests/git-common.bash2
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"