use git check-ref-format to check the branch name