From: Don Armstrong <don@donarmstrong.com>
Date: Fri, 2 Dec 2016 03:29:16 +0000 (-0800)
Subject: silence git fetch and errors in git fetch
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a09a049966ea1aaa86095e0fab29110053d9def6;p=spamassassin_config.git

silence git fetch and errors in git fetch
---

diff --git a/update_spamassassin b/update_spamassassin
index c5d9629..609e8f8 100755
--- a/update_spamassassin
+++ b/update_spamassassin
@@ -35,7 +35,7 @@ remove_pidfile() {
 
 OLDDIR="$(pwd)";
 cd "$SACONFIG";
-git fetch --all >/dev/null || exit 0;
+git fetch --quiet --all >/dev/null 2>&1 || exit 0;
 REMOTE_BRANCH="$(git status --porcelain --branch|grep '^##'|sed 's/.*\.\.\.//;s/ \[.*$//;')";
 CURRENT_HEAD="$(git rev-parse HEAD)"
 REMOTE_BRANCH_HEAD="$(git rev-parse "$REMOTE_BRANCH")"