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 22, 2021
1 parent c35f10a commit 9bda977
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/converter/plugins/GitHubPlugin.ts
Expand Up @@ -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,
});
}

/**
Expand Down

0 comments on commit 9bda977

Please sign in to comment.