Merge pull request #8622 from dtrodrigues/silence-detached-head
download_strategy: silence detached head warning on git clone
This commit is contained in:
commit
03a8522e66
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user