diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-25 13:56:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-25 13:56:24 +0900 |
commit | 7c88bb3eba77295cb4cd8ee1a713bae40d92600a (patch) | |
tree | 1d20970aee72a3d35134affdff324fd29aaae79c /tool | |
parent | f12f9f511ddf2116ed5da9a580336b148812ad23 (diff) |
fetch-bundled_gems.rb: Fixed the position of -c
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/fetch-bundled_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb index bb6f33abff..4ba1848d00 100755 --- a/tool/fetch-bundled_gems.rb +++ b/tool/fetch-bundled_gems.rb @@ -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 |