Skip to content

Commit

Permalink
Suppress detached head warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 7, 2019
1 parent ae8b977 commit 5a6954b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/lib/vcs.rb
Expand Up @@ -583,7 +583,7 @@ def grep(pat, tag, *files, &block)
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
Expand Down

0 comments on commit 5a6954b

Please sign in to comment.