diff options
| author | Max Howell | 2011-07-29 14:55:41 +0100 |
|---|---|---|
| committer | Max Howell | 2011-07-29 14:55:41 +0100 |
| commit | 98ffbeb8f577b80f85e0f8c8d73711a9391a3ea0 (patch) | |
| tree | 0a86bfa7e1e46c13b79985c28ff0e6b5b4cc8714 /Library/Homebrew/cmd | |
| parent | 36ce83fd8dcd413ccd84964e9e207a848c893b95 (diff) | |
| download | brew-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')
| -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? |
