String () { String sshCommand = EnvironmentUtil.getValue(GitCommand.GIT_SSH_COMMAND_ENV); if (sshCommand != null) return sshCommand; sshCommand = EnvironmentUtil.getValue(GitCommand.GIT_SSH_ENV); if (sshCommand != null) return sshCommand; VirtualFile root = myHandler.getExecutableContext().getRoot(); if (root == null) return null; GitRepository repo = GitRepositoryManager.getInstance(myProject).getRepositoryForRoot(root); if (repo != null) { return GitProjectConfigurationCache.getInstance(myProject).readRepositoryConfig(repo, GitConfigUtil.CORE_SSH_COMMAND); } else { try { return GitConfigUtil.getValue(myProject, root, GitConfigUtil.CORE_SSH_COMMAND); } catch (VcsException e) { LOG.warn(e); return null; } } }