Skip to content

Commit

Permalink
hotfix: return callback in case commit is null
Browse files Browse the repository at this point in the history
  • Loading branch information
wallet77 committed Jul 9, 2018
1 parent 1c71290 commit bcbaeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git/js-git-service.js
Expand Up @@ -129,7 +129,7 @@ jsGitService.getCommitHistory = function (folder, n, branch, remote, cb) {
}
if (!commit) {
parentCommitHash = null;
callback(null);
return callback(null);
}

commit.hash = parentCommitHash; // add hash back to commit as not a property when loaded by hash
Expand Down

0 comments on commit bcbaeba

Please sign in to comment.