From 87db6fc75a3d072601684782467d246b3261b564 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 26 Sep 2023 00:17:33 +1000 Subject: [PATCH] [ci skip] Fix branch check --- 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 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()