Fix git branch update in prompt.