diff --git a/packages/core/src/git.ts b/packages/core/src/git.ts index 09dccc6e2..18f262afd 100644 --- a/packages/core/src/git.ts +++ b/packages/core/src/git.ts @@ -358,8 +358,10 @@ export default class Git { /** Get the git log for a range of commits */ @memoize() async getGitLog(start: string, end = "HEAD"): Promise { + console.log('Get git log...'); try { const first = await this.getFirstCommit(); + console.log('First commit:', first); // This "shaExists" is just so we don't have to refactor all the tests // in auto.test.ts. If the SHA doesn't really exist then the call to // gitlog will fail too. @@ -367,6 +369,8 @@ export default class Git { ? await execPromise("git", ["rev-parse", start]) : ""; + console.log('Start SHA:', startSha); + const maxNumber = 2147483647; const log = await gitlog({ repo: process.cwd(), @@ -379,6 +383,8 @@ export default class Git { includeMergeCommitFiles: true, }); + console.log("Git log:", log); + return log .map((commit) => ({ hash: commit.hash,