aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorMax Howell2012-08-29 08:26:30 -0400
committerMax Howell2012-08-29 08:40:48 -0400
commitae26703cdb3fceccd286cd8d3f80ac09539f5955 (patch)
treedb4a96d8c92cea680a2300c1d037fcd2d7e1fb1b /install
parentfeb8cbcfd24661f3027cf7becb4cc55925427747 (diff)
downloadhomebrew-ae26703cdb3fceccd286cd8d3f80ac09539f5955.tar.bz2
Instead of pulling, fetch and hard-reset
Should prevent merge trouble.
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