aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
diff options
context:
space:
mode:
authorMax Howell2011-07-29 14:55:41 +0100
committerMax Howell2011-07-29 14:55:41 +0100
commita95473a5a6a328f8d99da1634cd35bff9c4b5524 (patch)
treeb404c03a87e6df76c3e797b5468d48e9f4bd74fa /Library/Homebrew/cmd/update.rb
parentfb2de567a52bbec076f31dd8e7bcc5420abeef06 (diff)
downloadhomebrew-a95473a5a6a328f8d99da1634cd35bff9c4b5524.tar.bz2
Make the check for a valid git repo better
Because the new installer creates the .git directory when it installs.
Diffstat (limited to 'Library/Homebrew/cmd/update.rb')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 7eac0b389..e477bc7dc 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -86,7 +86,7 @@ class RefreshBrew
end
def git_repo?
- File.directory? '.git'
+ Dir['.git/*'].count > 0
end
def pending_formulae_changes?