Testing with git index refresh included in gitIsDirty.

This commit is contained in:
Erik C. Thauvin 2018-06-25 17:24:27 -07:00
parent 1c13daeb6e
commit 13455e94f6

View file

@ -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) {