diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7a9bb0f69..68649e785 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -918,13 +918,7 @@ class Formula # @private def file_modified? - git = which("git") - - # git isn't installed by older Xcodes - return false if git.nil? - - # /usr/bin/git is a popup stub when Xcode/CLT aren't installed, so bail out - return false if git == "/usr/bin/git" && !MacOS.has_apple_developer_tools? + return false unless Utils.git_available? path.parent.cd do diff = Utils.popen_read("git", "diff", "origin/master", "--", "#{path}") |
