mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-08-16 08:15:50 +00:00
whoops messed up the extension retrieval
This commit is contained in:
parent
08b9058c8f
commit
b0ca0e3617
@ -141,10 +141,10 @@ tasks {
|
||||
"main" to main,
|
||||
"environment" to if (project.hasProperty("release")) "production" else "development",
|
||||
"commit" to provider {
|
||||
runCatching { extensions.getByType<Grgit>().head().id }
|
||||
.getOrDefault("")
|
||||
val res = runCatching { project.extensions.getByType<Grgit>().head().id }
|
||||
res.getOrDefault("")
|
||||
.takeIf { it.length == 40 } ?: {
|
||||
project.logger.error("Git commit hash not found")
|
||||
logger.error("Git commit hash not found", res.exceptionOrNull())
|
||||
"unknown"
|
||||
}()
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user