Skip to content

Commit dc32f1a

Browse files
authored
Merge pull request #287 from nomi9995/fix-spawnSync
fix: Error: spawnSync git ENOBUFS
2 parents 9d1e46d + fb10edb commit dc32f1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: src/makePatch.ts

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export function makePatch({
167167
spawnSafeSync("git", args, {
168168
cwd: tmpRepo.name,
169169
env: { ...process.env, HOME: tmpRepo.name },
170+
maxBuffer: 1024 * 1024 * 100,
170171
})
171172

172173
// remove nested node_modules just to be safe

Diff for: src/spawnSafe.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { SpawnOptions } from "child_process"
44
export interface SpawnSafeOptions extends SpawnOptions {
55
throwOnError?: boolean
66
logStdErrOnError?: boolean
7+
maxBuffer?: number
78
}
89

910
const defaultOptions: SpawnSafeOptions = {

0 commit comments

Comments
 (0)