When I ran:
brew update
I got a message saying it initialized an empty repository in /usr/local/.git/, then I got this error:
/usr/local/.git/