Make the check for a valid git repo better

Because the new installer creates the .git directory when it installs.
This commit is contained in:
Max Howell 2011-07-29 14:55:41 +01:00
parent 36ce83fd8d
commit 98ffbeb8f5

View File

@ -86,7 +86,7 @@ class RefreshBrew
end
def git_repo?
File.directory? '.git'
Dir['.git/*'].count > 0
end
def pending_formulae_changes?