download_strategy: silence detached head warning

This commit is contained in:
Dustin Rodrigues 2020-09-05 11:44:41 -04:00
parent 7bd2f511c4
commit fcf47b4f84

View File

@ -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