mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
fetch unshallow only in post-clone
This commit is contained in:
@@ -27,14 +27,6 @@ setup_xcode_cloud_environment () {
|
||||
|
||||
bundle config path vendor/bundle
|
||||
bundle install --jobs 4 --retry 3
|
||||
# Xcode Cloud shallow clones the repo. We need to deepen it to fetch tags, commit history and be able to rebase main on develop at the end of releases.
|
||||
# Check if the repository is shallow
|
||||
if git rev-parse --is-shallow-repository; then
|
||||
echo "Repository is shallow. Fetching full history..."
|
||||
git fetch --unshallow --quiet
|
||||
else
|
||||
echo "Repository is already fully cloned."
|
||||
fi
|
||||
}
|
||||
|
||||
install_xcode_cloud_brew_dependencies () {
|
||||
@@ -88,4 +80,9 @@ generate_what_to_test_notes() {
|
||||
|
||||
echo "$NOTES" > $TESTFLIGHT_DIR_PATH/$TESTFLIGHT_NOTES_FILE_NAME
|
||||
fi
|
||||
}
|
||||
|
||||
fetch_unshallow_repository() {
|
||||
# Xcode Cloud shallow clones the repo. We need to deepen it to fetch tags, commit history and be able to rebase main on develop at the end of releases.
|
||||
git fetch --unshallow --quiet
|
||||
}
|
||||
Reference in New Issue
Block a user