Fixes parsing issue with commits with no files

This commit is contained in:
Eric Amodio
2017-03-22 00:55:58 -04:00
parent 0c348cdb0f
commit 33debb6bb2

View File

@@ -86,6 +86,10 @@ export class GitLogParser {
case 'filename': case 'filename':
if (isRepoPath) { if (isRepoPath) {
const nextLine = lines[position + 1];
// If the next line isn't blank, make sure it isn't starting a new commit
if (nextLine && Git.shaRegex.test(nextLine)) continue;
position++; position++;
let diff = false; let diff = false;