From b709c9e5f775d81e8c6f58c90fb016a97aa825cf Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 25 Jun 2018 17:27:11 -0700 Subject: [PATCH] Revert "Testing with git index refresh included in gitIsDirty." This reverts commit 13455e94f663900331b4e8b3203b941991e9ee33. --- build.gradle.kts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 9d6c5ac..210513f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -114,9 +114,8 @@ tasks { val gitIsDirty by creating(Exec::class) { description = "Fails if git has uncommitted changes." group = "verification" - //dependsOn(gitRefreshIndex) - commandLine("git", "update-index", "--refresh").isIgnoreExitValue = true - commandLine("git", "diff-index", "--quiet", "HEAD", "--").isIgnoreExitValue = false + dependsOn(gitRefreshIndex) + commandLine("git", "diff-index", "--quiet", "HEAD", "--") } val gitTag by creating(Exec::class) {