[git] IDEA-103375 Fix understanding Git submodule roots

Git submodule repository is located not in submodule/.git, but
in supermodule/modules/.git.
At the same time submodule/.git is a file which contains the path to
the real repository location.
We already detect this, but we didn't use refresh to search for the
root as a VirtualFile, and in most cases it was not in the VFS yet.
This commit is contained in:
Kirill Likhodedov
2013-04-01 19:10:36 +04:00
parent e1a1c83a0e
commit 736c760645
+1 -1
View File
@@ -143,7 +143,7 @@ public class GitUtil {
}
pathToDir = FileUtil.toSystemIndependentName(canonicalPath);
}
return VcsUtil.getVirtualFile(pathToDir);
return VcsUtil.getVirtualFileWithRefresh(new File(pathToDir));
}
/**