mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
check if the git is shallow before fetching
This commit is contained in:
parent
9c8404a3cb
commit
48c50cecee
@ -28,7 +28,13 @@ setup_xcode_cloud_environment () {
|
|||||||
bundle config path vendor/bundle
|
bundle config path vendor/bundle
|
||||||
bundle install --jobs 4 --retry 3
|
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.
|
# 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
|
# 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 () {
|
install_xcode_cloud_brew_dependencies () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user