Merge remote-tracking branch 'origin/4.2'

Change-Id: I8896af66cf8af7436cf3946ddb013742260d50a9
This commit is contained in:
Eike Ziller
2017-02-01 14:07:35 +01:00
9 changed files with 41 additions and 26 deletions

View File

@@ -1118,7 +1118,7 @@ bool GitClient::synchronousReset(const QString &workingDirectory,
// Note that git exits with 1 even if the operation is successful
// Assume real failure if the output does not contain "foo.cpp modified"
// or "Unstaged changes after reset" (git 1.7.0).
if (resp.result == SynchronousProcessResponse::Finished
if (resp.result != SynchronousProcessResponse::Finished
&& (!stdOut.contains("modified") && !stdOut.contains("Unstaged changes after reset"))) {
if (files.isEmpty()) {
msgCannotRun(arguments, workingDirectory, resp.stdErr(), errorMessage);