From b390e56d676cd0a838e4b59b51b431535f760bb0 Mon Sep 17 00:00:00 2001
From: Lorn Potter <lorn.potter@nokia.com>
Date: Fri, 29 May 2009 08:38:30 +1000
Subject: [PATCH] Fixes:   don't timeout trying to run git when git cannot be
 found.

Task:     <task number>
Details:  <additional information>
---
 src/plugins/git/gitcommand.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/plugins/git/gitcommand.cpp b/src/plugins/git/gitcommand.cpp
index a4966c03a9d..e3fcd8571bf 100644
--- a/src/plugins/git/gitcommand.cpp
+++ b/src/plugins/git/gitcommand.cpp
@@ -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);
-- 
GitLab