diff options
| author | Max Howell | 2012-08-29 08:26:30 -0400 | 
|---|---|---|
| committer | Max Howell | 2012-08-29 08:40:48 -0400 | 
| commit | ae26703cdb3fceccd286cd8d3f80ac09539f5955 (patch) | |
| tree | db4a96d8c92cea680a2300c1d037fcd2d7e1fb1b /install | |
| parent | feb8cbcfd24661f3027cf7becb4cc55925427747 (diff) | |
| download | homebrew-ae26703cdb3fceccd286cd8d3f80ac09539f5955.tar.bz2 | |
Instead of pulling, fetch and hard-reset
Should prevent merge trouble.
Diffstat (limited to 'install')
| -rw-r--r-- | install | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -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 | 
