Skip to content

Commit

Permalink
download_strategy: silence detached head warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrodrigues committed Sep 5, 2020
1 parent 7bd2f51 commit fcf47b4
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 fcf47b4

Please sign in to comment.