ruby-changes:57652
From: Nobuyoshi <ko1@a...>
Date: Sun, 8 Sep 2019 00:23:58 +0900 (JST)
Subject: [ruby-changes:57652] 5a6954ba74 (master): Suppress detached head warning
https://git.ruby-lang.org/ruby.git/commit/?id=5a6954ba74 From 5a6954ba74adf190a64f91598667520135284a1c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 7 Sep 2019 17:28:05 +0900 Subject: Suppress detached head warning diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 2a6a4b5..85a4827 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -583,7 +583,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L583 end def export(revision, url, dir, keep_temp = false) - system(COMMAND, "clone", "-s", (@srcdir || '.').to_s, "-b", url, dir) or return + system(COMMAND, "clone", "-c", "advice.detachedHead=false", "-s", (@srcdir || '.').to_s, "-b", url, dir) or return system(COMMAND, "fetch", "origin", "+refs/notes/commits:refs/notes/commits", chdir: dir) or return (Integer === revision ? GITSVN : GIT).new(File.expand_path(dir)) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/