diff --git a/build.gradle.kts b/build.gradle.kts index 210513f..9d6c5ac 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -114,8 +114,9 @@ tasks { val gitIsDirty by creating(Exec::class) { description = "Fails if git has uncommitted changes." group = "verification" - dependsOn(gitRefreshIndex) - commandLine("git", "diff-index", "--quiet", "HEAD", "--") + //dependsOn(gitRefreshIndex) + commandLine("git", "update-index", "--refresh").isIgnoreExitValue = true + commandLine("git", "diff-index", "--quiet", "HEAD", "--").isIgnoreExitValue = false } val gitTag by creating(Exec::class) {