diff --git a/tools/js-tools/git-hooks/pre-push-hook.js b/tools/js-tools/git-hooks/pre-push-hook.js index 71cc239f1f13d..6198a50915a06 100644 --- a/tools/js-tools/git-hooks/pre-push-hook.js +++ b/tools/js-tools/git-hooks/pre-push-hook.js @@ -20,14 +20,11 @@ function checkFilenameCollisions() { const compare = Intl.Collator( 'und', { sensitivity: 'accent' } ).compare; - const files = spawnSync( 'git', [ - '-c', - 'core.quotepath=off', - 'ls-tree', - '-rt', - '--name-only', - 'HEAD', - ] ) + const files = spawnSync( + 'git', + [ '-c', 'core.quotepath=off', 'ls-tree', '-rt', '--name-only', 'HEAD' ], + { maxBuffer: 4096 * 1024 } + ) .stdout.toString() .trim() .split( '\n' )