Update branch check again

This commit is contained in:
Nassim Jahnke 2023-09-26 10:48:42 +10:00
parent 96650decae
commit e73eeeb434
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -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()