mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
GitUtil.findGitDir: resolve symlinks when searching for submodule repo dir
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user