aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-02-17 15:54:22 -0600
committerJack Nagel2013-02-17 15:54:22 -0600
commit528072f7d7c622efba30ea47f3846b9747608cdf (patch)
treea920675df74b8bf7b30ed7213e7444b21b92c0e8 /Library
parent6d1c6dcdeae8eb90d5679faa53c82dcc1574d017 (diff)
downloadbrew-528072f7d7c622efba30ea47f3846b9747608cdf.tar.bz2
GitDownloadStrategy: force checkouts
Local changes to the cached repository should not cause fetch or install to error out.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 25320c004..f814f5d5b 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