[rubygems/rubygems] No need to set anything at all unless standalone is given

https://github.com/rubygems/rubygems/commit/d695c8da3e
This commit is contained in:
David Rodríguez 2022-07-24 21:58:13 +02:00 коммит произвёл git
Родитель f78e46d404
Коммит b515fdcc32
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -147,8 +147,11 @@ module Bundler
def normalize_settings
Bundler.settings.set_command_option :path, nil if options[:system]
Bundler.settings.set_command_option_if_given :path, options[:path]
Bundler.settings.temporary(:path_relative_to_cwd => false) do
Bundler.settings.set_command_option :path, "bundle" if options["standalone"] && Bundler.settings[:path].nil?
if options["standalone"] && Bundler.settings[:path].nil?
Bundler.settings.temporary(:path_relative_to_cwd => false) do
Bundler.settings.set_command_option :path, "bundle"
end
end
bin_option = options["binstubs"]