forked from qt-creator/qt-creator
VCS: Minor fixes
- git status: Recognize text in case -u was passed - Mercurial: Always run in C locale
This commit is contained in:
@@ -1147,8 +1147,9 @@ GitClient::StatusResult GitClient::gitStatus(const QString &workingDirectory,
|
||||
}
|
||||
return StatusFailed;
|
||||
}
|
||||
// Unchanged?
|
||||
if (outputText.contains("nothing to commit"))
|
||||
// Unchanged (output text depending on whether -u was passed)
|
||||
if (outputText.contains("nothing to commit")
|
||||
|| outputText.contains("nothing added to commit but untracked files present"))
|
||||
return StatusUnchanged;
|
||||
return StatusChanged;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user