mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-74497 When reading branches from the file system, convert to "/"
This commit is contained in:
@@ -232,7 +232,10 @@ class GitRepositoryReader {
|
||||
@Override
|
||||
public boolean process(File file) {
|
||||
if (!file.isDirectory()) {
|
||||
branches.put(FileUtil.getRelativePath(myRefsHeadsDir, file), file);
|
||||
String relativePath = FileUtil.getRelativePath(myRefsHeadsDir, file);
|
||||
if (relativePath != null) {
|
||||
branches.put(FileUtil.toSystemIndependentName(relativePath), file);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -298,7 +301,9 @@ class GitRepositoryReader {
|
||||
public boolean process(File file) {
|
||||
if (!file.isDirectory()) {
|
||||
final String relativePath = FileUtil.getRelativePath(myRefsRemotesDir, file);
|
||||
branches.add(new GitBranch(relativePath, false, true));
|
||||
if (relativePath != null) {
|
||||
branches.add(new GitBranch(FileUtil.toSystemIndependentName(relativePath), false, true));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user