From dffd1703a519043e45f7bc0db25793d51e39d38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Olivieri=20Achille?= Date: Wed, 21 Feb 2024 17:58:38 +0100 Subject: [PATCH] Fixing git `2.43.0` max number issue #2425 --- packages/core/src/git.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/git.ts b/packages/core/src/git.ts index 730443a59..09dccc6e2 100644 --- a/packages/core/src/git.ts +++ b/packages/core/src/git.ts @@ -367,9 +367,10 @@ export default class Git { ? await execPromise("git", ["rev-parse", start]) : ""; + const maxNumber = 2147483647; const log = await gitlog({ repo: process.cwd(), - number: Number.MAX_SAFE_INTEGER, + number: maxNumber, fields: ["hash", "authorName", "authorEmail", "rawBody"], // If start === firstCommit then we want to include that commit in the changelog // Otherwise it was that last release and should not be included in the release.