From a47ea61f0bd87fdcc4576b4a1a7da32616a82346 Mon Sep 17 00:00:00 2001 From: Xu Cheng <xucheng@me.com> Date: Sat, 2 Apr 2016 20:07:07 +0800 Subject: [PATCH] update-test: fix git fork bomb --- Library/Homebrew/dev-cmd/update-test.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/update-test.rb b/Library/Homebrew/dev-cmd/update-test.rb index b32dcf45a0..edf4c542a1 100644 --- a/Library/Homebrew/dev-cmd/update-test.rb +++ b/Library/Homebrew/dev-cmd/update-test.rb @@ -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..." -- GitLab