Fixes parsing issue with merge commits

This commit is contained in:
Eric Amodio
2017-03-27 10:55:47 -04:00
parent ace0ac7018
commit 758d331e69

View File

@@ -82,7 +82,13 @@ export class GitLogParser {
case 'summary':
entry.summary = lineParts.slice(1).join(' ').trim();
while (++position < lines.length) {
if (!lines[position]) break;
const next = lines[position];
if (!next) break;
if (next === 'filename ?') {
position--;
break;
}
entry.summary += `\n${lines[position]}`;
}
break;