GitUtil.findGitDir: resolve symlinks when searching for submodule repo dir

This commit is contained in:
Kirill Likhodedov
2015-11-27 16:24:04 +03:00
parent 44b88eab6a
commit 60cc20b033
+1 -1
View File
@@ -115,7 +115,7 @@ public class GitUtil {
@Nullable
private static File findSubmoduleRepositoryDir(@NotNull VirtualFile rootDir, @NotNull String path) {
if (!FileUtil.isAbsolute(path)) {
String canonicalPath = FileUtil.toCanonicalPath(FileUtil.join(rootDir.getPath(), path));
String canonicalPath = FileUtil.toCanonicalPath(FileUtil.join(rootDir.getPath(), path), true);
if (canonicalPath == null) {
return null;
}