fix branch name parse bug.