diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 665c332b21036f705928885b564471ef2be8efaa..8b3774793a5c723a03d3ff51fc70bc36cdab1d40 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -956,7 +956,8 @@ void GitPlugin::startCommit(CommitType commitType) void GitPlugin::updateVersionWarning() { - if (m_gitClient->gitVersion() >= minimumRequiredVersion) + unsigned version = m_gitClient->gitVersion(); + if (!version || version >= minimumRequiredVersion) return; Core::IEditor *curEditor = Core::EditorManager::currentEditor(); if (!curEditor)