mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Use shellsplit
instead of array of strings
Previously, the command string to be used for the shell command was first generated and then split using shellsplit. This change reverts the current behavior as it breaks if the value of remote contains a space. https://github.com/rubygems/rubygems/commit/6649ee10b0
This commit is contained in:
parent
e014c9d607
commit
d7432fdee5
1 changed files with 2 additions and 2 deletions
|
@ -129,8 +129,8 @@ module Bundler
|
|||
|
||||
def git_push(remote = nil)
|
||||
remote ||= default_remote
|
||||
sh(%W[git push #{remote} refs/heads/#{current_branch}])
|
||||
sh(%W[git push #{remote} refs/tags/#{version_tag}])
|
||||
sh("git push #{remote} refs/heads/#{current_branch}".shellsplit)
|
||||
sh("git push #{remote} refs/tags/#{version_tag}".shellsplit)
|
||||
Bundler.ui.confirm "Pushed git commits and release tag."
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue