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

download_strategy: silence detached head warning on git clone
This commit is contained in:
Dustin Rodrigues 2020-09-05 13:36:08 -04:00 committed by GitHub
commit 03a8522e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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