diff --git a/src/helpers/files.ts b/src/helpers/files.ts index 4395670dcd..1745559663 100644 --- a/src/helpers/files.ts +++ b/src/helpers/files.ts @@ -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) {