Avoid running git branch to get branch. use the branch info returned by
gitpromptclient.