mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] when there are commits with both \u0001 and \u0003 symbols, try no to fail completely, but rather return commits that were loaded IDEA-156249
This commit is contained in:
@@ -835,7 +835,15 @@ public class GitHistoryUtils {
|
||||
|
||||
List<T> commits = ContainerUtil.newArrayList();
|
||||
|
||||
loadDetails(project, root, withRefs, withChanges, record -> commits.add(converter.fun(record)), parameters);
|
||||
try {
|
||||
loadDetails(project, root, withRefs, withChanges, record -> commits.add(converter.fun(record)), parameters);
|
||||
}
|
||||
catch (VcsException e) {
|
||||
if (commits.isEmpty()) {
|
||||
throw e;
|
||||
}
|
||||
LOG.warn("Error during loading details, returning partially loaded commits\n", e);
|
||||
}
|
||||
|
||||
return commits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user