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
commit98ffbeb8f577b80f85e0f8c8d73711a9391a3ea0 (patch)
tree0a86bfa7e1e46c13b79985c28ff0e6b5b4cc8714 /Library/Homebrew/cmd/update.rb
parent36ce83fd8dcd413ccd84964e9e207a848c893b95 (diff)
downloadbrew-98ffbeb8f577b80f85e0f8c8d73711a9391a3ea0.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?