1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Reuse sh helper for git push too

https://github.com/rubygems/rubygems/commit/32aa540163
This commit is contained in:
David Rodríguez 2021-08-26 12:57:42 +02:00 committed by git
parent df21600b98
commit 621fe09016

View file

@ -160,9 +160,7 @@ module Bundler
def perform_git_push(options = "") def perform_git_push(options = "")
cmd = "git push #{options}" cmd = "git push #{options}"
out, status = sh_with_status(cmd.shellsplit) sh(cmd.shellsplit)
return if status.success?
raise "Couldn't git push. `#{cmd}' failed with the following output:\n\n#{out}\n"
end end
def already_tagged? def already_tagged?