Skip to content

Commit

Permalink
fix: add maxBuffer to expensive git commands (#281)
Browse files Browse the repository at this point in the history
Fixes #253
  • Loading branch information
sammcj authored Nov 30, 2022
1 parent 27113d1 commit 3e67723
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30465,7 +30465,7 @@ class Git {
Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }).

${ PR_BODY }

${ changedFiles }

---
Expand Down Expand Up @@ -30623,7 +30623,8 @@ const execCmd = (command, workingDir, trimResult = true) => {
exec(
command,
{
cwd: workingDir
cwd: workingDir,
maxBuffer: 1024 * 1024 * 4
},
function(error, stdout) {
error ? reject(error) : resolve(
Expand Down
2 changes: 1 addition & 1 deletion src/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ class Git {
Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }).
${ PR_BODY }
${ changedFiles }
---
Expand Down
3 changes: 2 additions & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const execCmd = (command, workingDir, trimResult = true) => {
exec(
command,
{
cwd: workingDir
cwd: workingDir,
maxBuffer: 1024 * 1024 * 4
},
function(error, stdout) {
error ? reject(error) : resolve(
Expand Down

0 comments on commit 3e67723

Please sign in to comment.