mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[git] history: fix status information expectations.
It can safely be null, for example, for merge commits without any changes.
This commit is contained in:
@@ -372,8 +372,8 @@ public class GitHistoryUtils {
|
||||
new Date(record.getAuthorTimeStamp() * 1000), false, parents));
|
||||
List<GitLogStatusInfo> statusInfos = record.getStatusInfos();
|
||||
if (statusInfos.isEmpty()) {
|
||||
LOG.error(String.format("No status information for the file. File path: %s, current revision: %s, log record: %s",
|
||||
currentPath, revision, record));
|
||||
// can safely be empty, for example, for simple merge commits that don't change anything.
|
||||
return;
|
||||
}
|
||||
if (statusInfos.get(0).getType() == GitChangeType.ADDED) {
|
||||
skipFurtherOutput.set(true);
|
||||
|
||||
Reference in New Issue
Block a user