mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Bypass git submodule add/update with git config protocol.file.allow=always option.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
This commit is contained in:
parent
567725ed30
commit
dae843f6b7
Notes:
git
2022-10-19 11:35:12 +00:00
1 changed files with 5 additions and 0 deletions
|
@ -63,6 +63,11 @@ class TestGemSourceGit < Gem::TestCase
|
|||
end
|
||||
|
||||
def test_checkout_submodules
|
||||
# We need to allow to checkout submodules with file:// protocol
|
||||
# CVE-2022-39253
|
||||
# https://lore.kernel.org/lkml/xmqq4jw1uku5.fsf@gitster.g/
|
||||
system(@git, *%W"config --global protocol.file.allow always")
|
||||
|
||||
source = Gem::Source::Git.new @name, @repository, "master", true
|
||||
|
||||
git_gem "b"
|
||||
|
|
Loading…
Add table
Reference in a new issue