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