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:
parent
f12f9f511d
commit
7c88bb3eba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue