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

ruby-changes:67460

From: Jun <ko1@a...>
Date: Tue, 31 Aug 2021 19:07:39 +0900 (JST)
Subject: [ruby-changes:67460] 71f6711351 (master): [rubygems/rubygems] Fix some failing Bundler tests with old Git.

https://git.ruby-lang.org/ruby.git/commit/?id=71f6711351

From 71f6711351b89330f5445cef6f0a38618627ce66 Mon Sep 17 00:00:00 2001
From: Jun Aruga <jaruga@r...>
Date: Tue, 17 Aug 2021 18:21:06 +0200
Subject: [rubygems/rubygems] Fix some failing Bundler tests with old Git.

Use the `git branch --list` rather than the `git branch -l` for better
compatibility. Because the `git branch -l` is used to create a new branch in
Git version < 2.20.0.

https://github.com/rubygems/rubygems/commit/eac5be7d06
---
 spec/bundler/support/builders.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb
index 25377d2..10beba1 100644
--- a/spec/bundler/support/builders.rb
+++ b/spec/bundler/support/builders.rb
@@ -554,7 +554,7 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/builders.rb#L554
           raise "You can't specify `master` as the branch" if branch == "master"
           escaped_branch = Shellwords.shellescape(branch)
 
-          if @context.git("branch -l #{escaped_branch}", libpath).empty?
+          if @context.git("branch --list #{escaped_branch}", libpath).empty?
             @context.git("branch #{escaped_branch}", libpath)
           end
 
-- 
cgit v1.1


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

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