Jesse Duffield 2022-11-12 10:18:02 +11:00 committed by Andrew Hynes
parent 97ced9e14f
commit f98b2edae5
6 changed files with 11 additions and 4 deletions

View file

@ -11,6 +11,11 @@ git init
git config user.email "CI@example.com"
git config user.name "CI"
# see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html
# NOTE: I don't think this actually works if it's only applied to the repo.
# On CI we set the global setting, but given it's a security concern I don't want
# people to do that for their locals.
git config protocol.file.allow always
echo test1 > myfile1
git add .

View file

@ -26,5 +26,5 @@ cd ..
git clone --bare ./repo other_repo
cd repo
git submodule add ../other_repo
git -c protocol.file.allow=always submodule add ../other_repo
git commit -am "add submodule"

View file

@ -23,5 +23,5 @@ cd ..
git clone --bare ./repo other_repo
cd repo
git submodule add ../other_repo
git -c protocol.file.allow=always submodule add ../other_repo
git commit -am "add submodule"

View file

@ -23,5 +23,5 @@ cd ..
git clone --bare ./repo other_repo
cd repo
git submodule add ../other_repo
git -c protocol.file.allow=always submodule add ../other_repo
git commit -am "add submodule"