We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe2956 commit d63f58cCopy full SHA for d63f58c
app/build.gradle.kts
@@ -52,7 +52,7 @@ fun git(vararg args: String) = project.objects.newInstance<Git>().exec(*args)
52
53
fun getVersionNumberSuffix(): VersionSuffix {
54
val ref = git("describe", "--tags", "--always")
55
- val branch = git("branch")
+ val branch = git("rev-parse", "--abbrev-ref", "HEAD")
56
return when {
57
ref.matches(Regex("v?\\d+\\.\\d+\\.\\d+")) -> VersionSuffix.MAIN
58
branch.startsWith("hotfix") -> VersionSuffix.HOTFIX
0 commit comments