mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitInit: don't show the error if executable is not valid.
It is notified separately from GitHandler.start().
This commit is contained in:
@@ -80,11 +80,13 @@ public class GitInit extends DumbAwareAction {
|
||||
}
|
||||
|
||||
Git git = ServiceManager.getService(Git.class);
|
||||
|
||||
GitVcs vcs = GitVcs.getInstance(project);
|
||||
GitCommandResult result = git.init(project, root);
|
||||
if (!result.success()) {
|
||||
GitUIUtil.notify(GitVcs.IMPORTANT_ERROR_NOTIFICATION, project, "Git init failed", result.getErrorOutputAsHtmlString(),
|
||||
NotificationType.ERROR, null);
|
||||
if (vcs != null && vcs.getExecutableValidator().isExecutableValid()) {
|
||||
GitUIUtil.notify(GitVcs.IMPORTANT_ERROR_NOTIFICATION, project, "Git init failed", result.getErrorOutputAsHtmlString(),
|
||||
NotificationType.ERROR, null);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user