Skip to content

Commit cb3cc31

Browse files
authored
[Infra] Quiet the git fetch (#13436) (#13437)
1 parent 284a986 commit cb3cc31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/release_testing_setup.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ if [ "$TESTINGMODE" = "release_testing" ]; then
3131
set -x
3232
cd "${local_sdk_repo_dir}"
3333
elif [ "$TESTINGMODE" = "prerelease_testing" ]; then
34-
git fetch --tags origin main
34+
set -x
35+
git fetch --tags --quiet origin main
3536
git checkout main
3637
fi
3738

3839
# The chunk below is to determine the latest version by searching
3940
# Get the latest released tag Cocoapods-X.Y.Z for release and prerelease testing, beta version will be excluded.
41+
test_version=$(git tag -l --sort=-version:refname CocoaPods-*[0-9] | head -n 1)
42+
test_version=$(git tag -l --sort=-version:refname 'CocoaPods-*[0-9]' | head -n 1)
4043
test_version=$(git tag -l --sort=-version:refname --merged main CocoaPods-*[0-9] | head -n 1)
44+
test_version=$(git tag -l --sort=-version:refname --merged main 'CocoaPods-*[0-9]' | head -n 1)
45+
git for-each-ref --sort=-creatordate --format '%(creatordate:short) %(refname:short)' refs/tags | head -n 3
4146
if [ -z "$test_version" ]; then
4247
echo "Latest tag could not be found. Exiting." >&2
4348
exit 1

0 commit comments

Comments
 (0)