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

ruby-changes:60174

From: Nobuyoshi <ko1@a...>
Date: Mon, 24 Feb 2020 12:35:05 +0900 (JST)
Subject: [ruby-changes:60174] 116b9e6a16 (master): Retry checking out the version

https://git.ruby-lang.org/ruby.git/commit/?id=116b9e6a16

From 116b9e6a16c72276e92578b761846d05eaa3eff6 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 24 Feb 2020 12:32:50 +0900
Subject: Retry checking out the version

rss 0.2.9 is tagged without the "v" prefix.

diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb
index c2a1c0b..5769a19 100755
--- a/tool/fetch-bundled_gems.rb
+++ b/tool/fetch-bundled_gems.rb
@@ -26,4 +26,8 @@ else https://github.com/ruby/ruby/blob/trunk/tool/fetch-bundled_gems.rb#L26
   puts "retrieving #{n} ..."
   system(*%W"git clone #{u} #{n}") or abort
 end
-system(*%W"git checkout #{v}", chdir: n) or abort
+unless system(*%W"git checkout #{v}", chdir: n)
+  unless v.sub!(/\Av/, '') and system(*%W"git checkout #{v}", chdir: n)
+    abort
+  end
+end
-- 
cgit v0.10.2


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

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