SERVER-123555: Use --quiet to suppress huge tag printouts in CI (#51234)
GitOrigin-RevId: 29feba927634a558c44b182a7e5498bd1a8aac03
This commit is contained in:
parent
65e1bb31f1
commit
6a8c7dd4c1
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user