Skip to content

Commit e73eeeb

Browse files
committed
Update branch check again
1 parent 96650de commit e73eeeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-logic/src/main/kotlin/extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fun Project.latestCommitMessage(): String {
5050
fun Project.branchName(): String {
5151
val byteOut = ByteArrayOutputStream()
5252
exec {
53-
commandLine = listOf("git", "symbolic-ref", "--short", "HEAD")
53+
commandLine = listOf("git", "rev-parse", "--abbrev-ref", "HEAD")
5454
standardOutput = byteOut
5555
}
5656
return byteOut.toString(Charsets.UTF_8.name()).trim()

0 commit comments

Comments
 (0)