stop using depricated API
This commit is contained in:
@@ -16,9 +16,9 @@ val webUIRevisionTag = System.getenv("WebUIRevision") ?: "r963"
|
|||||||
|
|
||||||
// counts commits on the master branch
|
// counts commits on the master branch
|
||||||
val tachideskRevision = runCatching {
|
val tachideskRevision = runCatching {
|
||||||
System.getenv("ProductRevision") ?: Runtime
|
System.getenv("ProductRevision") ?: ProcessBuilder()
|
||||||
.getRuntime()
|
.command("git", "rev-list", "HEAD", "--count")
|
||||||
.exec("git rev-list HEAD --count")
|
.start()
|
||||||
.let { process ->
|
.let { process ->
|
||||||
process.waitFor()
|
process.waitFor()
|
||||||
val output = process.inputStream.use {
|
val output = process.inputStream.use {
|
||||||
|
|||||||
Reference in New Issue
Block a user