diff --git a/src/lib/file/readGit.ts b/src/lib/file/readGit.ts index 3a9574b..2917c4e 100644 --- a/src/lib/file/readGit.ts +++ b/src/lib/file/readGit.ts @@ -2,7 +2,7 @@ import fs, { Stats } from 'fs'; import { exec } from '../util/exec'; export const readGit = async (dir: string): Promise => { - const { stdout } = await exec('git ls-files', { cwd: dir }); + const { stdout } = await exec('git ls-files', { cwd: dir, maxBuffer: 3 * 2 ** 20 }); // 3MiB return stdout.split('\n').filter((filePath) => { let stats: Stats | undefined = undefined; try {