mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git4idea: IDEADEV-40669: git init now refreshes directory in order to prevent incorrect nofication about roots
This commit is contained in:
@@ -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<VcsDirectoryMapping> vcsDirectoryMappings = new ArrayList<VcsDirectoryMapping>(vcs.getDirectoryMappings());
|
||||
|
||||
Reference in New Issue
Block a user