Testing with git index refresh included in gitIsDirty.
This commit is contained in:
parent
1c13daeb6e
commit
13455e94f6
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue