You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.38.1 introduces a change (due to CVE-2022-39253) that disables git submodule add using the file protocol.
➜ product git:(master) git submodule add ../remote
Cloning into '/Users/.../git-katas/submodules/exercise/product/remote'...
fatal: transport 'file' not allowed
fatal: clone of '/Users/.../git-katas/submodules/exercise/remote' into submodule path '/Users/.../git-katas/submodules/exercise/product/remote' failed
Apparently this can be alleviated by setting git config --global protocol.file.allow always.
Unfortunately this can not be solved with a --local setting as that only applies to the parent repo, not the submodule.
I would prefer not to have the setup.sh script mess with users global config, especially regarding something security related, but we need a solution.
Using git -c protocol.file.allow=always submodule add ../remote works, but is not a nice command to have to explain in a kata.
The text was updated successfully, but these errors were encountered:
As mentioned in #347, there is a new restriction in Git since 2.38.1 which means that we can only run this kata by temporarily loosening the security restrictions.
Until we find a better solution, this at least adds a note with instructions.
2.38.1 introduces a change (due to CVE-2022-39253) that disables
git submodule add
using the file protocol.Apparently this can be alleviated by setting
git config --global protocol.file.allow always
.Unfortunately this can not be solved with a
--local
setting as that only applies to the parent repo, not the submodule.I would prefer not to have the setup.sh script mess with users global config, especially regarding something security related, but we need a solution.
Using
git -c protocol.file.allow=always submodule add ../remote
works, but is not a nice command to have to explain in a kata.The text was updated successfully, but these errors were encountered: