Skip to content
Snippets Groups Projects
Commit b390e56d authored by Lorn Potter's avatar Lorn Potter
Browse files

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

Task:     <task number>
Details:  <additional information>
parent 55e7f655
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment