So I've set up bash autocompletion for my install of git, and that rocks. However, I've got a bare repo that I occasionally have to directly interface with (git reset
, for example), and any time I cd
into the bare repo, the GIT_PS1_SHOWDIRTYSTATE
setting I have to show me the status of my normal working trees runs, and I see this message:
fatal: This operation must be run in a work tree
It is, I think, trying to run a git status
against that repo, but being bare, it reports an error.
I'd love to not see that error every time I do anything in my bare repo; it's thrown me off a few times already.