aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install4
1 files changed, 3 insertions, 1 deletions
diff --git a/install b/install
index 32655ad16..c8a35fee3 100644
--- a/install
+++ b/install
@@ -131,9 +131,11 @@ Dir.chdir "/usr/local" do
system git, "init", "-q"
system git, "remote", "add", "origin", "https://github.com/mxcl/homebrew"
- args = git, "pull", "origin", "master", "--depth=1"
+ args = git, "fetch", "origin", "--depth=1"
args.pop unless ARGV.include? "--fast"
system *args
+
+ system git, "reset", "--hard", "origin/master"
else
# -m to stop tar erroring out if it can't modify the mtime for root owned directories
# pipefail to cause the exit status from curl to propogate if it fails