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:
parent
36ce83fd8d
commit
98ffbeb8f5
@ -86,7 +86,7 @@ class RefreshBrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def git_repo?
|
def git_repo?
|
||||||
File.directory? '.git'
|
Dir['.git/*'].count > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def pending_formulae_changes?
|
def pending_formulae_changes?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user