diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-07 17:28:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-08 00:22:24 +0900 |
commit | 5a6954ba74adf190a64f91598667520135284a1c (patch) | |
tree | 1cd9844fd9e25e22f75f09d90a9721f505f92f9d /tool | |
parent | ae8b9777424f11cbcb962db94958f1e8a3c11acd (diff) |
Suppress detached head warning
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 2a6a4b501b..85a4827fe2 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -583,7 +583,7 @@ class VCS 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 |