mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-01-19 21:21:28 +01:00
Update branch check again
This commit is contained in:
parent
96650decae
commit
e73eeeb434
@ -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", "symbolic-ref", "--short", "HEAD")
|
commandLine = listOf("git", "rev-parse", "--abbrev-ref", "HEAD")
|
||||||
standardOutput = byteOut
|
standardOutput = byteOut
|
||||||
}
|
}
|
||||||
return byteOut.toString(Charsets.UTF_8.name()).trim()
|
return byteOut.toString(Charsets.UTF_8.name()).trim()
|
||||||
|
Loading…
Reference in New Issue
Block a user