From 8a60d852b3ad4ba0dc6c59dc9a5d956eed300e1d Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 22 Sep 2010 21:38:52 -0700 Subject: [PATCH] Check git repos for validity before updating. If you `brew install erlang` and then control-C during the git clone, you can leave your cloned repo in an invalid state. This change does a "git status" on the clone if it exists, and nukes it if the status is invalid (forcing a clean clone.) --- Library/Homebrew/download_strategy.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 767a26d159..083031e064 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -257,6 +257,17 @@ class GitDownloadStrategy