ruby-changes:60901
From: Nobuyoshi <ko1@a...>
Date: Sat, 25 Apr 2020 13:18:57 +0900 (JST)
Subject: [ruby-changes:60901] f12f9f511d (master): fetch-bundled_gems.rb: Quiet detached HEAD advice
https://git.ruby-lang.org/ruby.git/commit/?id=f12f9f511d From f12f9f511ddf2116ed5da9a580336b148812ad23 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 25 Apr 2020 13:16:40 +0900 Subject: fetch-bundled_gems.rb: Quiet detached HEAD advice diff --git a/tool/fetch-bundled_gems.rb b/tool/fetch-bundled_gems.rb index 28ae3d4..bb6f33a 100755 --- a/tool/fetch-bundled_gems.rb +++ b/tool/fetch-bundled_gems.rb @@ -17,8 +17,9 @@ else https://github.com/ruby/ruby/blob/trunk/tool/fetch-bundled_gems.rb#L17 puts "retrieving #{n} ..." system(*%W"git clone #{u} #{n}") or abort end -unless system(*%W"git checkout #{v.sub(/\A(?=\d)/, 'v')}", chdir: n) - unless /\A\d/ =~ v and system(*%W"git checkout #{v}", chdir: n) +checkout = %w"git checkout -c advice.detachedHead=false" +unless system(*checkout, v.sub(/\A(?=\d)/, 'v'), chdir: n) + unless /\A\d/ =~ v and system(*checkout, v, chdir: n) abort end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/