diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-24 12:32:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-24 12:33:16 +0900 |
commit | 116b9e6a16c72276e92578b761846d05eaa3eff6 (patch) | |
tree | bfe586c3384b4d639dcd5ba3c8ab8fc4008f6ffd /tool/fetch-bundled_gems.rb | |
parent | 6f92c62084b283820f80a4facda9c16e1408fdca (diff) | |
download | ruby-116b9e6a16c72276e92578b761846d05eaa3eff6.tar.gz |
Retry checking out the version
rss 0.2.9 is tagged without the "v" prefix.
Diffstat (limited to 'tool/fetch-bundled_gems.rb')
-rwxr-xr-x | tool/fetch-bundled_gems.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |