protected String gitFindTags ( ) throws MojoFailureException , CommandLineException { String tags = executeGitCommandReturn ( "for-each-ref" , "--sort=*authordate" , "--format=\"%(refname:short)\"" , "refs/tags/" ) ; // https://github.com/aleksandr-m/gitflow-maven-plugin/issues/3 tags = removeQuotes ( tags ) ; return tags ; }
Executes git for - each - ref to get all tags .