From 6e781eafaefa54fad24ed857e1f96261ff3bebb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20G=C3=BCven?= <97512+DragonWork@users.noreply.github.com> Date: Mon, 17 Mar 2025 20:43:56 +0100 Subject: [PATCH] fix(ignore): Make update check less verbose (#26774) --- update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index b05bc6d81..781237b7c 100755 --- a/update.sh +++ b/update.sh @@ -2,9 +2,10 @@ cd "$(dirname "$0")" if [ "$1" != "force" ]; then - git fetch - NEW_COMMITS="$(git rev-list HEAD...origin/"$(git branch --show-current)" --count)" - if [ "$NEW_COMMITS" -gt "0" ]; then + echo "Checking for updates..." + git fetch -q + NEW_COMMITS="$(git rev-list HEAD...@{upstream} --count)" + if [ "$NEW_COMMITS" -gt 0 ]; then echo "Update available!" else echo "No update available. Use '$0 force' to skip the check."