I have a really large commit on my private repository. It contains a new json file that has over 40000 lines.
When I try to compare the commit, it shows the following error.
# diff2html v1.1.5 v1.2.7
<ref *1> Error: spawnSync /bin/sh ENOBUFS
at Object.spawnSync (internal/child_process.js:1067:20)
at spawnSync (child_process.js:602:24)
at Object.execSync (child_process.js:647:15)
at Object.execute (/usr/local/lib/node_modules/diff2html-cli/lib/utils.js:38:36)
at runGitDiff (/usr/local/lib/node_modules/diff2html-cli/lib/cli.js:87:18)
at Object.<anonymous> (/usr/local/lib/node_modules/diff2html-cli/lib/cli.js:125:32)
at step (/usr/local/lib/node_modules/diff2html-cli/lib/cli.js:63:23)
at Object.next (/usr/local/lib/node_modules/diff2html-cli/lib/cli.js:44:53)
at /usr/local/lib/node_modules/diff2html-cli/lib/cli.js:38:71
at new Promise (<anonymous>) {
errno: -105,
code: 'ENOBUFS',
syscall: 'spawnSync /bin/sh',
path: '/bin/sh',
spawnargs: [ '-c', 'git diff "v1.1.5" "v1.2.7" --no-color ' ],
error: [Circular *1],
status: null,
signal: 'SIGTERM',
output: [
null,
<Buffer 64 69 66 66 20 2d 2d 67 69 74 20 61 2f 2e 67 69 74 69 67 6e 6f 72 65 20 62 2f 2e 67 69 74 69 67 6e 6f 72 65 0a 69 6e 64 65 78 20 66 35 35 32 37 34 63 ... 1056718 more bytes>,
<Buffer >
],
pid: 12472,
stdout: <Buffer 64 69 66 66 20 2d 2d 67 69 74 20 61 2f 2e 67 69 74 69 67 6e 6f 72 65 20 62 2f 2e 67 69 74 69 67 6e 6f 72 65 0a 69 6e 64 65 78 20 66 35 35 32 37 34 63 ... 1056718 more bytes>,
stderr: <Buffer >
} []
I have a really large commit on my private repository. It contains a new json file that has over 40000 lines.
When I try to compare the commit, it shows the following error.
How can I increase the buffer size to complete this compare?