When I run git status on my repo I get fatal: Not a git repository: /my repo/.git/modules/docs
I've checked and .git exists and contains HEAD with the proper permissions. I can run various other commands fine. If I run git gui it opens fine and will list a couple of the changed files, but is missing a lot of them.
I'm guessing there may be some sort of corruption in HEAD, not sure though. Any idea how to fix this without wiping out the whole repo?
Update: I realized that I had changed the name of the repo's directory. The directory being referenced in the error is the old name of the directory. So my current repo is at /new dir/.git
but the error is saying Not a git repository: /old dir/.git/modules/docs
. So maybe git is confused?