From 528072f7d7c622efba30ea47f3846b9747608cdf Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 17 Feb 2013 15:54:22 -0600 Subject: [PATCH] GitDownloadStrategy: force checkouts Local changes to the cached repository should not cause fetch or install to error out. --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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