OS X Mavericks: Git bash prompt has stopped tracking if uncommitted changes are present

I upgraded to 10.9 over the weekend, and my bash prompt display is acting a little funky. I currently have this in my .bash_profile:

function parse_git_dirty {
  [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
function parse_git_branch {
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"

PS1="\n\[\e[1;34m\]\$(date +%H:%M) \[\e[1;36m\]\w\[\e[1;33m\] \$(parse_git_branch) \[\e[1;31m\]\$(rvm_version)\n\[\e[0;32m\]> \[\e[0m\]"
unset color_prompt force_color_prompt

That used to (in 10.8) produce a prompt that looked something like this:

07:45 ~/code/project_dir [git-branch] 1.9.3@project

If there were changes that needed to be committed to my git branch, it would have an asterisk appended ([git-branch*]).

Since upgrading, however, it always has the * listed after the branch. Everything else seems to be functioning like normal. How can I get it to behave like it did before?

I’ve updated to the latest version of git as well.

  • GitHub “remote: Permission to personalaccount/somefile.git denied to clientaccount”
  • Can't add files to git in current directory anymore
  • How to handle accented characters in file names in Git on Mac OS X converted to unicode
  • Good Git repository viewer for Mac
  • Where is .gitignore_global saved on OS X?
  • Change color of GIT branch in OS X terminal
  • netbeans c++ cross-plattform (mac & linux) at the same time with git
  • Command not found error on git-tf clone
  • 2 Solutions collect form web for “OS X Mavericks: Git bash prompt has stopped tracking if uncommitted changes are present”

    This seems like a change in git version. When I run git status in OS X 10.9 (Git, the message from a clean repository is

    nothing to commit, working directory clean

    Per @chepner, I switched to using git-prompt.sh via homebrew’s bash-completion package.

    Git Baby is a git and github fan, let's start git clone.