fixed an error in parse_git_branch