ci: fix fetch_from_mirror_url_if_exists

This commit is contained in:
Chen Yudong 2023-11-16 10:54:37 +08:00 committed by Fu Hanxi
parent e6a4ad3d55
commit 6947dd533a
No known key found for this signature in database
GPG Key ID: 19399699CF3C4B16

View File

@ -229,7 +229,8 @@ variables:
else
git remote add origin "${MIRROR_REPO_URL}"
fi
git fetch origin --no-recurse-submodules
# mirror url may fail with authentication issue
git fetch origin --no-recurse-submodules || true
fi
# set remote url to CI_REPOSITORY_URL