From 8850c09e7e808fcc9cfad2cf5eeff8cf9a3d2a2e Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Sat, 21 Sep 2013 16:02:07 +0400 Subject: [PATCH] Github: add missing testGitExecutable --- .../src/org/jetbrains/plugins/github/GithubShareAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/github/src/org/jetbrains/plugins/github/GithubShareAction.java b/plugins/github/src/org/jetbrains/plugins/github/GithubShareAction.java index 5efa2682e695..0b22377a1a1e 100644 --- a/plugins/github/src/org/jetbrains/plugins/github/GithubShareAction.java +++ b/plugins/github/src/org/jetbrains/plugins/github/GithubShareAction.java @@ -97,7 +97,7 @@ public class GithubShareAction extends DumbAwareAction { final Project project = e.getData(PlatformDataKeys.PROJECT); final VirtualFile file = e.getData(PlatformDataKeys.VIRTUAL_FILE); - if (project == null || project.isDisposed()) { + if (project == null || project.isDisposed() || !GithubUtil.testGitExecutable(project)) { return; }