Skip to content

Commit 9eb0d21

Browse files
committed
add --quiet flag git diff
This fixes ENOBUFS error which is thrown when the stdout buffer exceeds 1MB
1 parent 2db7572 commit 9eb0d21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ remove
3636

3737
echo "Checking for uncommitted changes in the git working tree..."
3838
# This section only runs if there have been file changes
39-
if ! git diff --cached --exit-code; then
39+
if ! git diff --cached --quiet --exit-code; then
4040
git_setup
4141

4242
git fetch

src/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ remove
3636

3737
echo "Checking for uncommitted changes in the git working tree..."
3838
# This section only runs if there have been file changes
39-
if ! git diff --cached --exit-code; then
39+
if ! git diff --cached --quiet --exit-code; then
4040
git_setup
4141

4242
git fetch

0 commit comments

Comments
 (0)