Browse Source

Fixes parsing issue with commits with no files

main
Eric Amodio 7 years ago
parent
commit
33debb6bb2
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/git/parsers/logParser.ts

+ 7
- 3
src/git/parsers/logParser.ts View File

@ -11,10 +11,10 @@ interface ILogEntry {
author?: string;
authorDate?: string;
// committer?: string;
// committerDate?: string;
// committer?: string;
// committerDate?: string;
// parentSha?: string;
// parentSha?: string;
fileName?: string;
originalFileName?: string;
@ -86,6 +86,10 @@ export class GitLogParser {
case 'filename':
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++;
let diff = false;

Loading…
Cancel
Save