Kill the git process if we timed out waiting for it.

This commit is contained in:
dt
2009-04-07 12:04:43 +02:00
parent c95f079fc0
commit 3da6ca098c

View File

@@ -544,9 +544,11 @@ bool GitClient::synchronousGit(const QString &workingDirectory,
process.setEnvironment(environment.toStringList());
process.start(m_binaryPath, arguments);
if (!process.waitForFinished()) {
if (errorText)
*errorText = "Error: Git timed out";
process.kill();
return false;
}