Skip to content
Snippets Groups Projects
Unverified Commit 03a8522e authored by Dustin Rodrigues's avatar Dustin Rodrigues Committed by GitHub
Browse files

Merge pull request #8622 from dtrodrigues/silence-detached-head

download_strategy: silence detached head warning on git clone
parents 028b70c7 fcf47b4f
No related branches found
No related tags found
No related merge requests found
......@@ -757,6 +757,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
case @ref_type
when :branch, :tag
args << "--branch" << @ref
args << "-c" << "advice.detachedHead=false" # silences detached head warning
end
args << @url << cached_location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment