Fix brew update after new install for real this time?

Fixes Homebrew/homebrew#7220.
This commit is contained in:
Max Howell 2011-08-26 11:25:09 +01:00
parent e527c1c83a
commit 0d6aff5e1b

View File

@ -43,7 +43,7 @@ class RefreshBrew
safe_system "git init"
safe_system "git remote add origin #{REPOSITORY_URL}"
safe_system "git fetch origin"
safe_system "git reset --hard FETCH_HEAD"
safe_system "git reset --hard origin/master"
rescue Exception
safe_system "/bin/rm -rf .git"
raise