From e0987e23792f0e625d86ec4266ef7bb70caba064 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 6 Nov 2014 18:16:38 +0300 Subject: [PATCH] Revert "[git] IDEA-132265 Don't send update event on repository initialization" This breaks GitBranchWidget, because it doesn't update its state on start. There is no good enough fix for the problem until the GitRepositoryManager is fixed and become more synchonous in terms of getting repository for root (IDEA-132330) --- plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.java b/plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.java index 3f6f25f1dc46..30951670e079 100644 --- a/plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.java +++ b/plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.java @@ -217,7 +217,7 @@ public class GitRepositoryImpl extends RepositoryImpl implements GitRepository { if (Disposer.isDisposed(repository.getProject())) { return; } - if (previousInfo != null && !info.equals(previousInfo)) { + if (!info.equals(previousInfo)) { repository.getProject().getMessageBus().syncPublisher(GIT_REPO_CHANGE).repositoryChanged(repository); } }