add --quiet flag git diff

This fixes ENOBUFS error which is thrown when the stdout buffer exceeds 1MB
This commit is contained in:
Robin Wijnant
2020-04-30 10:31:44 +02:00
parent 2db75722ce
commit 9eb0d21b0d
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ remove
echo "Checking for uncommitted changes in the git working tree..."
# This section only runs if there have been file changes
if ! git diff --cached --exit-code; then
if ! git diff --cached --quiet --exit-code; then
git_setup
git fetch

View File

@@ -36,7 +36,7 @@ remove
echo "Checking for uncommitted changes in the git working tree..."
# This section only runs if there have been file changes
if ! git diff --cached --exit-code; then
if ! git diff --cached --quiet --exit-code; then
git_setup
git fetch