From 6a8c7dd4c104f16ceb8bbe412e0cf53c783a1687 Mon Sep 17 00:00:00 2001 From: Steve McClure Date: Tue, 7 Apr 2026 10:24:44 -0400 Subject: [PATCH] SERVER-123555: Use `--quiet` to suppress huge tag printouts in CI (#51234) GitOrigin-RevId: 29feba927634a558c44b182a7e5498bd1a8aac03 --- evergreen/restore_git_history_and_tags.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evergreen/restore_git_history_and_tags.sh b/evergreen/restore_git_history_and_tags.sh index c5d0132c2df..932e554f186 100644 --- a/evergreen/restore_git_history_and_tags.sh +++ b/evergreen/restore_git_history_and_tags.sh @@ -31,12 +31,13 @@ if [ -f .git/shallow ]; then # break later git commands. no_commit_graph="-c gc.writeCommitGraph=false -c fetch.writeCommitGraph=false" if [ "$(printf '%s\n' "$required_version" "$git_version" | sort -V | head -n1)" = "$required_version" ]; then - $retry_git $no_commit_graph fetch origin --filter=tree:0 --unshallow --tags + $retry_git $no_commit_graph fetch origin --filter=tree:0 --unshallow --tags --quiet else - $retry_git $no_commit_graph fetch origin --filter=blob:none --unshallow --tags + $retry_git $no_commit_graph fetch origin --filter=blob:none --unshallow --tags --quiet fi # If describing the commit still fails after restoring history, refetch tags. + # Don't use `quiet` here to show more because it's our last fallback. git describe 2>/dev/null || $retry_git fetch origin --tags else # Sometimes the tags necessary to describe a commit don't