aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-03-16 00:35:49 +0000
committerMax Howell2012-03-16 00:35:49 +0000
commit5329bbc7bb6e797001a4622cab14f491c427d89d (patch)
tree94818efabfcaabf9cd8b4e51201c1c79d827755d /Library
parent9bba1590c5dae92cb91a95a32d06c3b26437798d (diff)
downloadhomebrew-5329bbc7bb6e797001a4622cab14f491c427d89d.tar.bz2
Tell user to `brew update' if no .git
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index e953e75f3..6c13e741a 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -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?