[git] history: fix status information expectations.

It can safely be null, for example, for merge commits without any changes.
This commit is contained in:
Kirill Likhodedov
2012-07-30 16:13:45 +04:00
parent bf1f731d6d
commit 2e27b2c76b
@@ -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);