not language dependent git command
This commit is contained in:
parent
8b18a7ffb3
commit
6fd8d7ae3c
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ def allCommited = { ->
|
|||
try {
|
||||
def stdout = new ByteArrayOutputStream()
|
||||
exec {
|
||||
commandLine 'git', 'status'
|
||||
commandLine 'git', 'status', '-s'
|
||||
standardOutput = stdout
|
||||
}
|
||||
String commitObject = stdout.toString().trim()
|
||||
|
@ -87,7 +87,7 @@ def allCommited = { ->
|
|||
} catch (ignored) {
|
||||
return false; // NoGitSystemAvailable
|
||||
}
|
||||
return stringBuilder.toString().contains("nothing to commit") || stringBuilder.toString().contains("nichts zu committen")
|
||||
return stringBuilder.toString().isEmpty()
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue