aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2011-08-26 11:25:09 +0100
committerMax Howell2011-08-26 11:25:09 +0100
commitc0710f74fc22feb5b70771416c722fa7806737bf (patch)
tree75b97d9e276f4c60110b51c64b638deb6af4ca9c /Library
parent3cfee0a9bc4c4f52a76a50fa0737be76468893a9 (diff)
downloadhomebrew-c0710f74fc22feb5b70771416c722fa7806737bf.tar.bz2
Fix `brew update` after new install for real this time?
Fixes #7220.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 94aea383d..be1176a77 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -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