Skip to content

Commit

Permalink
fix: add maxBuffer to expensive git commands (BetaHuhn#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammcj authored and ChrisCarini committed Dec 27, 2022
1 parent 27a2d2f commit faf96cc
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 @@ -30470,7 +30470,7 @@ class Git {
Synced local file(s) with [${ GITHUB_REPOSITORY }](https://github.com/${ GITHUB_REPOSITORY }).

${ PR_BODY }

${ changedFiles }

---
Expand Down Expand Up @@ -30628,7 +30628,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 faf96cc

Please sign in to comment.