From d70da5614aca5ac372e2935acc7da6390c655e6b Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Mon, 17 Apr 2023 12:58:10 +0800 Subject: [PATCH] Update githubclone.sh --- scripts/githubclone.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/githubclone.sh b/scripts/githubclone.sh index 6b99b729..c4879493 100644 --- a/scripts/githubclone.sh +++ b/scripts/githubclone.sh @@ -24,9 +24,13 @@ for mirror in "${MIRRORS[@]}"; do # 尝试克隆仓库 for i in {1..3}; do echo "Trying to clone from $mirror_url (attempt $i)" - if git clone --depth=1 "$mirror_url"; then + if git clone "$mirror_url"; then echo "Successfully cloned from $mirror_url" exit 0 + else + echo "Failed to clone from $mirror_url (attempt $i)" fi done done + +echo "Failed to clone the repository after multiple attempts. Please check your network connection and try again later."