From 333c031798665f087207400221d7578d5c90ebe9 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Sun, 17 Mar 2024 09:16:30 +0200 Subject: [PATCH] Fix Xcode Cloud release notes, unshallow repository before generating them. --- ci_scripts/ci_common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci_scripts/ci_common.sh b/ci_scripts/ci_common.sh index 01ff291712..8ffeec681e 100755 --- a/ci_scripts/ci_common.sh +++ b/ci_scripts/ci_common.sh @@ -73,8 +73,9 @@ generate_what_to_test_notes() { TESTFLIGHT_DIR_PATH=TestFlight TESTFLIGHT_NOTES_FILE_NAME=WhatToTest.en-US.txt - # Xcode Cloud shallow clones the repo, we need to manually fetch the tags - git fetch --tags --quiet + # Xcode Cloud shallow clones the repo, we need to deepen it to fetch tags and commit history + # Instead of trying `--deepen=` just do a full unshallow to avoid future surprises + git fetch --unshallow --quiet LATEST_TAG="" if [ "$CI_WORKFLOW" = "Release" ]; then