From 116b9e6a16c72276e92578b761846d05eaa3eff6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 24 Feb 2020 12:32:50 +0900 Subject: [PATCH] Retry checking out the version rss 0.2.9 is tagged without the "v" prefix. --- tool/fetch-bundled_gems.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb index c2a1c0b700..5769a19b37 100755 --- a/tool/fetch-bundled_gems.rb +++ b/tool/fetch-bundled_gems.rb @@ -26,4 +26,8 @@ else 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