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:
parent
6f92c62084
commit
116b9e6a16
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue