Skip to content

Commit

Permalink
This should work everywhere, hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Sep 29, 2020
1 parent b98e694 commit b648c8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bundler/lib/bundler/source/git/git_proxy.rb
Expand Up @@ -136,7 +136,9 @@ def copy_to(destination, submodules = false)
if submodules
git_retry "submodule update --init --recursive", :dir => destination
elsif Gem::Version.create(version) >= Gem::Version.create("2.9.0")
git_retry 'submodule foreach --quiet "git -C \$toplevel submodule deinit --force \$sm_path"', :dir => destination
inner_command = "git -C $toplevel submodule deinit --force $sm_path"
inner_command = inner_command.gsub("$") { '\$' } unless Bundler::WINDOWS
git_retry "submodule foreach --quiet \"#{inner_command}\"", :dir => destination
end
end

Expand Down

0 comments on commit b648c8e

Please sign in to comment.