summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-08-26 12:57:42 +0200
committergit <svn-admin@ruby-lang.org>2021-10-13 23:30:13 +0900
commit621fe09016b06ee8bfb05511416e7138a24b3b37 (patch)
tree358f71509a124e701d62fd603614831cfacede5e
parentdf21600b98dfe58528e1ace9961b8eb6bbad5b46 (diff)
[rubygems/rubygems] Reuse `sh` helper for `git push` too
https://github.com/rubygems/rubygems/commit/32aa540163
-rw-r--r--lib/bundler/gem_helper.rb4
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?