Mercurial > public > develkit
diff init50-git.gradle @ 334:64a8d53c6d98
change how the version is parsed from git commands
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Mon, 06 Mar 2023 15:36:07 -0500 |
parents | 7bc7c6c79d7c |
children | 54614542f0f7 |
line wrap: on
line diff
--- a/init50-git.gradle Mon Mar 06 15:13:17 2023 -0500 +++ b/init50-git.gradle Mon Mar 06 15:36:07 2023 -0500 @@ -810,7 +810,7 @@ def branches = "git branch --remote".execute().text.split("\n") .findAll { it.contains('release') || it.contains('hotfix') } - .collect { it.replaceAll('\\s+', ' ').split(' ')[1].split('/')[2] - 'v' } + .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } .collect { new Version(*it.split('\\.')*.toInteger()) } def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 }