Skip to content

Commit 3e67723

Browse files
authored
fix: add maxBuffer to expensive git commands (#281)
Fixes #253
1 parent 27113d1 commit 3e67723

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

dist/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30465,7 +30465,7 @@ class Git {
3046530465
Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }).
3046630466

3046730467
${ PR_BODY }
30468-
30468+
3046930469
${ changedFiles }
3047030470

3047130471
---
@@ -30623,7 +30623,8 @@ const execCmd = (command, workingDir, trimResult = true) => {
3062330623
exec(
3062430624
command,
3062530625
{
30626-
cwd: workingDir
30626+
cwd: workingDir,
30627+
maxBuffer: 1024 * 1024 * 4
3062730628
},
3062830629
function(error, stdout) {
3062930630
error ? reject(error) : resolve(

src/git.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class Git {
421421
Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }).
422422
423423
${ PR_BODY }
424-
424+
425425
${ changedFiles }
426426
427427
---

src/helpers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ const execCmd = (command, workingDir, trimResult = true) => {
4848
exec(
4949
command,
5050
{
51-
cwd: workingDir
51+
cwd: workingDir,
52+
maxBuffer: 1024 * 1024 * 4
5253
},
5354
function(error, stdout) {
5455
error ? reject(error) : resolve(

0 commit comments

Comments
 (0)