File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,18 @@ if [ "$TESTINGMODE" = "release_testing" ]; then
31
31
set -x
32
32
cd " ${local_sdk_repo_dir} "
33
33
elif [ " $TESTINGMODE " = " prerelease_testing" ]; then
34
- git fetch --tags origin main
34
+ set -x
35
+ git fetch --tags --quiet origin main
35
36
git checkout main
36
37
fi
37
38
38
39
# The chunk below is to determine the latest version by searching
39
40
# 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)
40
43
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
41
46
if [ -z " $test_version " ]; then
42
47
echo " Latest tag could not be found. Exiting." >&2
43
48
exit 1
You can’t perform that action at this time.
0 commit comments