diff options
author | David RodrÃguez <[email protected]> | 2021-08-26 12:57:42 +0200 |
---|---|---|
committer | git <[email protected]> | 2021-10-13 23:30:13 +0900 |
commit | 621fe09016b06ee8bfb05511416e7138a24b3b37 (patch) | |
tree | 358f71509a124e701d62fd603614831cfacede5e /lib | |
parent | df21600b98dfe58528e1ace9961b8eb6bbad5b46 (diff) |
[rubygems/rubygems] Reuse `sh` helper for `git push` too
https://github.com/rubygems/rubygems/commit/32aa540163
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/gem_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb index dd1dc096f5..973884dc37 100644 --- a/lib/bundler/gem_helper.rb +++ b/lib/bundler/gem_helper.rb @@ -160,9 +160,7 @@ module Bundler def perform_git_push(options = "") cmd = "git push #{options}" - out, status = sh_with_status(cmd.shellsplit) - return if status.success? - raise "Couldn't git push. `#{cmd}' failed with the following output:\n\n#{out}\n" + sh(cmd.shellsplit) end def already_tagged? |