bashrc: Do not try to print branch name in .git directory

Fixes a bug in 5a0f0122.
In `.git` directory `git rev-parse` exits with status code 0 but prints
an unwanted error message that messes up the status line.