Skip to content

Commit 0c0f587

Browse files
committed
fix: Error: spawnSync git ENOBUFS
1 parent 50f73bd commit 0c0f587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/makePatch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function makePatch({
158158
spawnSafeSync("git", args, {
159159
cwd: tmpRepo.name,
160160
env: { ...process.env, HOME: tmpRepo.name },
161+
maxBuffer: 1024 * 1024 * 100,
161162
})
162163

163164
// remove nested node_modules just to be safe

0 commit comments

Comments
 (0)