title: How can I get the GIT_PS1_SHOWDIRTYSTATE to not run against a bare repo?
body: <p>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 (<code>git reset</code>, for example), and any time I <code>cd</code> into the bare repo, the <code>GIT_PS1_SHOWDIRTYSTATE</code> setting I have to show me the status of my normal working trees runs, and I see this message:</p>
  
  <p><code>fatal: This operation must be run in a work tree</code></p>
  
  <p>It is, I think, trying to run a <code>git status</code> against that repo, but being bare, it reports an error.</p>
  
  <p>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.</p>