Skip to content

Commit

Permalink
Increase git ls-files maxBuffer to 10MB
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfurniss committed Oct 19, 2021
1 parent c35f10a commit 003488f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/converter/plugins/GitHubPlugin.ts
Expand Up @@ -9,8 +9,10 @@ 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 });
}

/**
Expand Down

0 comments on commit 003488f

Please sign in to comment.