From 13455e94f663900331b4e8b3203b941991e9ee33 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 25 Jun 2018 17:24:27 -0700 Subject: [PATCH] Testing with git index refresh included in gitIsDirty. --- build.gradle.kts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) {