diff options
| author | Max Howell | 2011-07-29 14:55:41 +0100 |
|---|---|---|
| committer | Max Howell | 2011-07-29 14:55:41 +0100 |
| commit | a95473a5a6a328f8d99da1634cd35bff9c4b5524 (patch) | |
| tree | b404c03a87e6df76c3e797b5468d48e9f4bd74fa /Library/Homebrew/cmd/update.rb | |
| parent | fb2de567a52bbec076f31dd8e7bcc5420abeef06 (diff) | |
| download | homebrew-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.rb | 2 |
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? |
