diff --git a/build.gradle.kts b/build.gradle.kts index fdb5f005..f3fce213 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -595,7 +595,7 @@ afterEvaluate { val http = HttpUtils() val tags = grgit.tag.list().sortedByDescending { it.commit.dateTime }.map { it.commit.id } - val prevTag: String = tags.getOrNull(1) ?: grgit.log().minBy { it.dateTime }.id + val prevTag: String = tags[1] val commitList = grgit.log { range(prevTag, "HEAD")