Fixes #129669: new setting to control status limit

Also bumps the default from 5000 to 10,000
This commit is contained in:
Eric Amodio
2021-09-30 01:04:30 -04:00
parent 6fed60f8f4
commit 2306ad1ef4
4 changed files with 36 additions and 14 deletions

View File

@@ -1842,7 +1842,7 @@ export class Repository {
const onStdoutData = (raw: string) => {
parser.update(raw);
if (parser.status.length > limit) {
if (limit !== 0 && parser.status.length > limit) {
child.removeListener('exit', onExit);
child.stdout!.removeListener('data', onStdoutData);
child.kill();