1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Retry checking out the version

rss 0.2.9 is tagged without the "v" prefix.
This commit is contained in:
Nobuyoshi Nakada 2020-02-24 12:32:50 +09:00
parent 6f92c62084
commit 116b9e6a16
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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