3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-02 00:10:06 +02:00

[ci skip] Fix branch check

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-09-26 00:17:33 +10:00
Ursprung 840770a350
Commit 87db6fc75a

Datei anzeigen

@ -50,7 +50,7 @@ fun Project.latestCommitMessage(): String {
fun Project.branchName(): String { fun Project.branchName(): String {
val byteOut = ByteArrayOutputStream() val byteOut = ByteArrayOutputStream()
exec { exec {
commandLine = listOf("git", "branch") commandLine = listOf("git", "symbolic-ref", "--short", "HEAD")
standardOutput = byteOut standardOutput = byteOut
} }
return byteOut.toString(Charsets.UTF_8.name()).trim() return byteOut.toString(Charsets.UTF_8.name()).trim()