Skip to content

Commit

Permalink
Trim short git commit.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth J. Shackleton <[email protected]>
  • Loading branch information
kennethshackleton committed May 3, 2024
1 parent ba5717c commit 32a2013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/SelektExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fun Project.gitCommit(): Provider<String> = providers.exec {

fun Project.gitCommitShort(): Provider<String> = providers.exec {
commandLine("git", "rev-parse", "--short", "HEAD")
}.standardOutput.asText
}.standardOutput.asText.map { it.trim() }

fun Project.isRelease() = hasProperty("release")

Expand Down

0 comments on commit 32a2013

Please sign in to comment.