From e73eeeb4347b51ed8432b9d688b6a231e74b001b Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 26 Sep 2023 10:48:42 +1000 Subject: [PATCH] Update branch check again --- build-logic/src/main/kotlin/extensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/extensions.kt b/build-logic/src/main/kotlin/extensions.kt index c0e2af63..342d7107 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", "symbolic-ref", "--short", "HEAD") + commandLine = listOf("git", "rev-parse", "--abbrev-ref", "HEAD") standardOutput = byteOut } return byteOut.toString(Charsets.UTF_8.name()).trim()