Skip to content

Commit

Permalink
Merge pull request #8622 from dtrodrigues/silence-detached-head
Browse files Browse the repository at this point in the history
download_strategy: silence detached head warning on git clone
  • Loading branch information
dtrodrigues authored Sep 5, 2020
2 parents 028b70c + fcf47b4 commit 03a8522
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/download_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ def clone_args
case @ref_type
when :branch, :tag
args << "--branch" << @ref
args << "-c" << "advice.detachedHead=false" # silences detached head warning
end

args << @url << cached_location
Expand Down

0 comments on commit 03a8522

Please sign in to comment.