Tell user to `brew update' if no .git
This commit is contained in:
parent
e0a8ddcd1e
commit
c28943de7b
@ -2,7 +2,8 @@ require 'formula'
|
||||
|
||||
module Homebrew extend self
|
||||
def versions
|
||||
raise "Please `brew install git` first" unless system "/usr/bin/which -s git"
|
||||
raise "Please `brew install git' first" unless system "/usr/bin/which -s git"
|
||||
raise "Please `brew update' first" unless (HOMEBREW_REPOSITORY/".git").directory?
|
||||
|
||||
raise FormulaUnspecifiedError if ARGV.named.empty?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user