fix git symbol to only show on a git repo