Increase buffer size for hygiene check

I occasional see our precommit checks fail due to buffer size issues. This should fix that
This commit is contained in:
Matt Bierner
2026-04-30 20:55:37 -07:00
parent 9ea2ac02b3
commit 638c99fdba

View File

@@ -253,7 +253,7 @@ function createGitIndexVinyls(paths: string[]): Promise<VinylFile[]> {
cp.exec(
process.platform === 'win32' ? `git show :${relativePath}` : `git show ':${relativePath}'`,
{ maxBuffer: stat.size, encoding: 'buffer' },
{ maxBuffer: Math.max(stat.size * 2, 1024 * 1024), encoding: 'buffer' },
(err, out) => {
if (err) {
return e(err);