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

fetch-bundled_gems.rb: Fixed the position of -c

This commit is contained in:
Nobuyoshi Nakada 2020-04-25 13:56:24 +09:00
parent f12f9f511d
commit 7c88bb3eba
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -17,7 +17,7 @@ else
puts "retrieving #{n} ..."
system(*%W"git clone #{u} #{n}") or abort
end
checkout = %w"git checkout -c advice.detachedHead=false"
checkout = %w"git -c advice.detachedHead=false checkout"
unless system(*checkout, v.sub(/\A(?=\d)/, 'v'), chdir: n)
unless /\A\d/ =~ v and system(*checkout, v, chdir: n)
abort