From 9bda97778ee466a367c5ac97161a17717a817ee7 Mon Sep 17 00:00:00 2001 From: Nathaniel Furniss Date: Tue, 19 Oct 2021 10:37:46 -0700 Subject: [PATCH] Increase `git ls-files` maxBuffer to 10MB --- src/lib/converter/plugins/GitHubPlugin.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/converter/plugins/GitHubPlugin.ts b/src/lib/converter/plugins/GitHubPlugin.ts index ba598a5da..ec69e4da7 100644 --- a/src/lib/converter/plugins/GitHubPlugin.ts +++ b/src/lib/converter/plugins/GitHubPlugin.ts @@ -9,8 +9,14 @@ import type { Context } from "../context"; import { BindOption } from "../../utils"; import { RepositoryType } from "../../models"; +const TEN_MEGABYTES: number = 1024 * 10000; + function git(...args: string[]) { - return spawnSync("git", args, { encoding: "utf-8", windowsHide: true }); + return spawnSync("git", args, { + encoding: "utf-8", + windowsHide: true, + maxBuffer: TEN_MEGABYTES, + }); } /**