Skip to content

Commit

Permalink
fix: increase maxBuffer of spawnSync
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrussoc committed Apr 21, 2022
1 parent 2bceed8 commit b0a0719
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/helpers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,11 @@ export function getAllFiles(
): string[] {
UploadLogger.verbose(`Searching for files in ${dirPath}`)

const {
stdout,
status,
error,
} = spawnSync('git', ['-C', dirPath, 'ls-files'], { encoding: 'utf8' })
const { stdout, status, error } = spawnSync(
'git',
['-C', dirPath, 'ls-files'],
{ encoding: 'utf8', maxBuffer: 100 * 1024 * 1024 },
)

let files = []
if (error instanceof Error || status !== 0) {
Expand Down

0 comments on commit b0a0719

Please sign in to comment.