# HG changeset patch # User Marc Davis # Date 1686768123 14400 # Node ID 172495bee8a16cd7670667b0ddaaa0f01d45f3a2 # Parent 0bef709263cdf6bdc4000218205c777d7e8926c7 use git branch --all to find release branches. diff -r 0bef709263cd -r 172495bee8a1 init50-git.gradle --- a/init50-git.gradle Wed Jun 14 14:38:11 2023 -0400 +++ b/init50-git.gradle Wed Jun 14 14:42:03 2023 -0400 @@ -809,17 +809,12 @@ .findAll { it != null } .sort { v1, v2 -> v2 <=> v1 } - def branches = "git branch --remote".execute().text.split("\n") - .findAll { - println "Found branch ($it)" - it.contains('release') || it.contains('hotfix') - } + def branches = "git branch --all".execute().text.split("\n") + .findAll {it.contains('release') || it.contains('hotfix') } .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } .collect { new Version(*it.split('\\.')*.toInteger()) } def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 } - results.each { println it } - println "Selected version : ${results.first().nextSnapshot()}" if (results.isEmpty()) { return new Version().nextSnapshot() } else {