From 4254661c66a3567cb098f9f92ec1bc1d301c1503 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 12 Nov 2009 03:55:09 +0000 Subject: Brew update will git init if required This is necessary for those who installed Homebrew using the suggested tarball method. Too late for them though.--- bin/brew | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/brew b/bin/brew index ed7a5124e..3bb11b385 100755 --- a/bin/brew +++ b/bin/brew @@ -132,7 +132,8 @@ begin exec_editor *paths end - when 'up', 'update' + when 'up', 'update' + if system "/usr/bin/which -s git" require 'update' updater = RefreshBrew.new old_revision = updater.current_revision @@ -147,6 +148,9 @@ begin puts "No formulae were updated." unless updater.pending_formulae_changes? end end + else + abort "Please `brew install git' first." + end when 'ln', 'link' ARGV.kegs.each {|keg| puts "#{keg.link} links created for #{keg}"} -- cgit v1.2.3