diff --git a/buildSrc/src/main/kotlin/SelektExtensions.kt b/buildSrc/src/main/kotlin/SelektExtensions.kt index 13cc0a105c..8efa43f637 100644 --- a/buildSrc/src/main/kotlin/SelektExtensions.kt +++ b/buildSrc/src/main/kotlin/SelektExtensions.kt @@ -34,7 +34,7 @@ fun Project.gitCommit(): Provider = providers.exec { fun Project.gitCommitShort(): Provider = providers.exec { commandLine("git", "rev-parse", "--short", "HEAD") -}.standardOutput.asText +}.standardOutput.asText.map { it.trim() } fun Project.isRelease() = hasProperty("release")