Skip to content

Commit

Permalink
Increased pre-push hook buffer to avoid truncation. (#38734)
Browse files Browse the repository at this point in the history
* Increased pre-push hook buffer to avoid truncation.

* Brought back trim.
  • Loading branch information
zinigor authored Aug 6, 2024
1 parent cdc192b commit 7ca6629
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions tools/js-tools/git-hooks/pre-push-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down

0 comments on commit 7ca6629

Please sign in to comment.