protected boolean validBranchName ( final String branchName ) throws MojoFailureException , CommandLineException { CommandResult r = executeGitCommandExitCode ( "check-ref-format" , "--allow-onelevel" , branchName ) ; return r . getExitCode ( ) == SUCCESS_EXIT_CODE ; }
Checks if branch name is acceptable .