Skip to content

Commit

Permalink
fix: increase max buffer limit for diff calc
Browse files Browse the repository at this point in the history
  • Loading branch information
SkReD committed Jan 30, 2023
1 parent 03f6e51 commit 9d4743c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/pvm-core/lib/git/named-diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export interface NamedDiffShellOpts {
}

function namedDiff(revArgs: string, shellOpts: NamedDiffShellOpts): NamedDiff {
const nameStats = wdShell(shellOpts.cwd, `git diff --name-status ${revArgs}`).split('\n')
const nameStats = wdShell(shellOpts.cwd, `git diff --name-status ${revArgs}`, {
maxBuffer: 1024 * 1024 * 10,
}).split('\n')
const result = Object.create(null)

for (const line of nameStats) {
Expand Down

0 comments on commit 9d4743c

Please sign in to comment.