diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 25320c0048..f814f5d5bb 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -415,7 +415,7 @@ class GitDownloadStrategy < AbstractDownloadStrategy else `git symbolic-ref refs/remotes/origin/HEAD`.strip.split("/").last end - args = %w{checkout} + args = %w{checkout -f} args << { :quiet_flag => '-q' } args << ref end