From fcf47b4f84f42151e2a7b4c29184c240792dce7f Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Sat, 5 Sep 2020 11:44:41 -0400 Subject: [PATCH] download_strategy: silence detached head warning --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 536c22481d..f4305e429d 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -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