From f30e1092f314b59609955f7eea759ab9a8680300 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Thu, 6 Oct 2011 13:49:44 +0200
Subject: [PATCH] Git: Fix git.cmd not found on windows

Change-Id: I89c7743331bb28bbabe946df3da8fede44652414
Reviewed-on: http://codereview.qt-project.org/6138
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
---
 src/plugins/git/gitsettings.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/plugins/git/gitsettings.cpp b/src/plugins/git/gitsettings.cpp
index 1868b1ff04f..013cbc5df5f 100644
--- a/src/plugins/git/gitsettings.cpp
+++ b/src/plugins/git/gitsettings.cpp
@@ -54,11 +54,10 @@ GitSettings::GitSettings()
 {
     setSettingsGroup(QLatin1String("Git"));
 
+    declareKey(binaryPathKey, QLatin1String("git"));
 #ifdef Q_OS_WIN
-    declareKey(binaryPathKey, QLatin1String("git.exe"));
     declareKey(timeoutKey, 60);
 #else
-    declareKey(binaryPathKey, QLatin1String("git"));
     declareKey(timeoutKey, 30);
 #endif
     declareKey(adoptPathKey, false);
-- 
GitLab