diff --git a/Library/Contributions/cmd/brew-versions.rb b/Library/Contributions/cmd/brew-versions.rb index 3a0fd6b640..ff3b2bfe08 100755 --- a/Library/Contributions/cmd/brew-versions.rb +++ b/Library/Contributions/cmd/brew-versions.rb @@ -1,6 +1,5 @@ require "formula_versions" -raise "Please `brew install git` first" unless which "git" raise "Please `brew update` first" unless (HOMEBREW_REPOSITORY/".git").directory? raise FormulaUnspecifiedError if ARGV.named.empty? diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 5308fc9393..1ce1966e17 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -54,7 +54,7 @@ module Homebrew end def github_fork - if which 'git' and (HOMEBREW_REPOSITORY/".git").directory? + if (HOMEBREW_REPOSITORY/".git").directory? if `git remote -v` =~ %r{origin\s+(https?://|git(?:@|://))github.com[:/](.+)/homebrew} $2 end diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 8ed45b239e..c3fb1ed5e8 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -12,8 +12,6 @@ module Homebrew end def install_tap user, repo - raise "brew install git" unless which 'git' - # we special case homebrew so users don't have to shift in a terminal repouser = if user == "homebrew" then "Homebrew" else user end user = "homebrew" if user == "Homebrew" diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index b85a355b81..4040d343ef 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -9,7 +9,6 @@ module Homebrew Use `brew upgrade `. EOS end - abort "Please `brew install git' first." unless which "git" # ensure GIT_CONFIG is unset as we need to operate on .git/config ENV.delete('GIT_CONFIG')