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

View File

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