protected boolean gitCheckTagExists ( final String tagName ) throws MojoFailureException , CommandLineException { CommandResult commandResult = executeGitCommandExitCode ( "show-ref" , "--verify" , "--quiet" , "refs/tags/" + tagName ) ; return commandResult . getExitCode ( ) == SUCCESS_EXIT_CODE ; }
Checks if local tag with given name exists .