[前][次][番号順一覧][スレッド一覧]

ruby-changes:68435

From: David <ko1@a...>
Date: Wed, 13 Oct 2021 23:30:34 +0900 (JST)
Subject: [ruby-changes:68435] 621fe09016 (master): [rubygems/rubygems] Reuse `sh` helper for `git push` too

https://git.ruby-lang.org/ruby.git/commit/?id=621fe09016

From 621fe09016b06ee8bfb05511416e7138a24b3b37 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Thu, 26 Aug 2021 12:57:42 +0200
Subject: [rubygems/rubygems] Reuse `sh` helper for `git push` too

https://github.com/rubygems/rubygems/commit/32aa540163
---
 lib/bundler/gem_helper.rb | 4 +---
 1 file changed, 1 insertion(+), 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 https://github.com/ruby/ruby/blob/trunk/lib/bundler/gem_helper.rb#L160
 
     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?
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]