Skip to content

Commit d63f58c

Browse files
Fix version code
1 parent 5fe2956 commit d63f58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fun git(vararg args: String) = project.objects.newInstance<Git>().exec(*args)
5252

5353
fun getVersionNumberSuffix(): VersionSuffix {
5454
val ref = git("describe", "--tags", "--always")
55-
val branch = git("branch")
55+
val branch = git("rev-parse", "--abbrev-ref", "HEAD")
5656
return when {
5757
ref.matches(Regex("v?\\d+\\.\\d+\\.\\d+")) -> VersionSuffix.MAIN
5858
branch.startsWith("hotfix") -> VersionSuffix.HOTFIX

0 commit comments

Comments
 (0)