Commit b390e56d authored by Lorn Potter's avatar Lorn Potter

Fixes: don't timeout trying to run git when git cannot be found.

Task:     <task number>
Details:  <additional information>
parent 55e7f655
......@@ -104,6 +104,10 @@ void GitCommand::execute()
if (m_jobs.empty())
return;
if(!QFileInfo(m_binaryPath).exists()){
emit errorText(QLatin1String("Error: Git not found.")+m_binaryPath);
return;
}
// For some reason QtConcurrent::run() only works on this
QFuture<void> task = QtConcurrent::run(this, &GitCommand::run);
const QString taskName = QLatin1String("Git ") + m_jobs.front().arguments.at(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment