Skip to content

Commit

Permalink
Merge pull request #522 from kennethshackleton/trim-short-commit
Browse files Browse the repository at this point in the history
Trim short git commit.
  • Loading branch information
kennethshackleton authored May 3, 2024
2 parents ccf541f + b31da83 commit 74309c6
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 74309c6

Please sign in to comment.