diff --git a/src/plugins/git/gitplugin.cpp b/src/plugins/git/gitplugin.cpp index 54b8dbe9991..55f71643c42 100644 --- a/src/plugins/git/gitplugin.cpp +++ b/src/plugins/git/gitplugin.cpp @@ -982,7 +982,10 @@ GitPluginPrivate::GitPluginPrivate() this, [this](const QString &name) { const VcsBasePluginState state = currentState(); QTC_ASSERT(state.hasTopLevel(), return); - m_gitClient.show(state.topLevel(), name); + if (name.contains("..")) + m_gitClient.log(state.topLevel(), {}, false, {name}); + else + m_gitClient.show(state.topLevel(), name); }); }