update-test: fix git fork bomb

This commit is contained in:
Xu Cheng 2016-04-02 20:07:07 +08:00
parent 360cd3cb56
commit a47ea61f0b

View File

@ -1,5 +1,3 @@
require "extend/ENV"
module Homebrew
#
# Usage:
@ -41,8 +39,7 @@ module Homebrew
safe_system "git", "reset", "--hard", start_sha1
# update ENV["PATH"]
ENV.extend(Stdenv)
ENV.prepend_path "PATH", "#{curdir}/bin"
ENV["PATH"] = "#{curdir}/bin:/usr/local/bin:/usr/bin:/bin"
# run brew update
oh1 "Running brew update..."