Commit 2d68f9c8 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Avoid version warning when Git is not found



Task-number: QTCREATORBUG-9411
Change-Id: I0bb90e508b78d0e7c7ff86fda72399036ad665ae
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent 55bb2e42
...@@ -956,7 +956,8 @@ void GitPlugin::startCommit(CommitType commitType) ...@@ -956,7 +956,8 @@ void GitPlugin::startCommit(CommitType commitType)
void GitPlugin::updateVersionWarning() void GitPlugin::updateVersionWarning()
{ {
if (m_gitClient->gitVersion() >= minimumRequiredVersion) unsigned version = m_gitClient->gitVersion();
if (!version || version >= minimumRequiredVersion)
return; return;
Core::IEditor *curEditor = Core::EditorManager::currentEditor(); Core::IEditor *curEditor = Core::EditorManager::currentEditor();
if (!curEditor) if (!curEditor)
......
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