mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-35260 Fix already disposed
This commit is contained in:
@@ -608,6 +608,9 @@ public class GitUtil {
|
||||
}
|
||||
|
||||
public static boolean justOneGitRepository(Project project) {
|
||||
if (project.isDisposed()) {
|
||||
return true;
|
||||
}
|
||||
GitRepositoryManager manager = getRepositoryManager(project);
|
||||
if (manager == null) {
|
||||
return true;
|
||||
|
||||
@@ -79,7 +79,7 @@ public final class GitCompoundResult {
|
||||
GitCommandResult result = entry.getValue();
|
||||
if (!result.success()) {
|
||||
sb.append("<p>");
|
||||
if (!onlyOneRepositoryInTheProject()) {
|
||||
if (!GitUtil.justOneGitRepository(myProject)) {
|
||||
sb.append("<code>" + repository.getPresentableUrl() + "</code>:<br/>");
|
||||
}
|
||||
sb.append(result.getErrorOutputAsHtmlString());
|
||||
@@ -88,8 +88,4 @@ public final class GitCompoundResult {
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
private boolean onlyOneRepositoryInTheProject() {
|
||||
return !GitUtil.getRepositoryManager(myProject).moreThanOneRoot();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user