diff --git a/build-logic/src/main/kotlin/extensions.kt b/build-logic/src/main/kotlin/extensions.kt index 7300afd06..69434dca5 100644 --- a/build-logic/src/main/kotlin/extensions.kt +++ b/build-logic/src/main/kotlin/extensions.kt @@ -50,7 +50,7 @@ fun Project.latestCommitMessage(): String { fun Project.branchName(): String { val byteOut = ByteArrayOutputStream() exec { - commandLine = listOf("git", "branch") + commandLine = listOf("git", "symbolic-ref", "--short", "HEAD") standardOutput = byteOut } return byteOut.toString(Charsets.UTF_8.name()).trim()