From dcf39b92d72991f936629553e65750eeb78c448b Mon Sep 17 00:00:00 2001 From: Constantine Plotnikov Date: Tue, 6 Oct 2009 17:27:45 +0400 Subject: [PATCH] git4idea: IDEADEV-40669: git init now refreshes directory in order to prevent incorrect nofication about roots --- plugins/git4idea/src/git4idea/actions/GitInit.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/git4idea/src/git4idea/actions/GitInit.java b/plugins/git4idea/src/git4idea/actions/GitInit.java index 5062cf639ad0..5058ff4427fd 100644 --- a/plugins/git4idea/src/git4idea/actions/GitInit.java +++ b/plugins/git4idea/src/git4idea/actions/GitInit.java @@ -73,12 +73,14 @@ public class GitInit extends AnAction { } catch (VcsException ex) { GitUIUtil.showOperationError(project, ex, "git init"); + return; } int rc = Messages.showYesNoDialog(project, GitBundle.getString("init.add.root.message"), GitBundle.getString("init.add.root.title"), Messages.getQuestionIcon()); if (rc != 0) { return; } + root.refresh(false, false); final String path = root.equals(baseDir) ? "" : root.getPath(); ProjectLevelVcsManager vcs = ProjectLevelVcsManager.getInstance(project); final List vcsDirectoryMappings = new ArrayList(vcs.getDirectoryMappings());