Skip to content

Commit

Permalink
Fixing git 2.43.0 max number issue intuit#2425
Browse files Browse the repository at this point in the history
  • Loading branch information
NiccoloOlivieriAchille committed Feb 21, 2024
1 parent 7a6f0ae commit dffd170
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dffd170

Please sign in to comment.