From 1df6e5d3312590d0996b5e38f857c338f46cddc8 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Tue, 25 Aug 2015 17:32:39 +0800 Subject: [PATCH] Formula#file_modfiled?: remove unnecessary git dir check It's already covered by `$?.exitstatus == 0` in below. --- Library/Homebrew/formula.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 0e3830e1f5..7ec035dd79 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -765,10 +765,8 @@ class Formula end def file_modified? - # New Homebrew installs may not be a git repo yet - return false unless File.exist? "#{HOMEBREW_PREFIX}/.git" - git = which("git") + # git isn't installed by older Xcodes return false if git.nil?