From 14cb8c460c015034e14555e924905db8434a71be Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Mon, 17 Apr 2023 12:09:13 +0800 Subject: [PATCH] Update githubclone.sh --- scripts/githubclone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/githubclone.sh b/scripts/githubclone.sh index 6157668b..6b99b729 100644 --- a/scripts/githubclone.sh +++ b/scripts/githubclone.sh @@ -24,7 +24,7 @@ for mirror in "${MIRRORS[@]}"; do # 尝试克隆仓库 for i in {1..3}; do echo "Trying to clone from $mirror_url (attempt $i)" - if git clone "$mirror_url"; then + if git clone --depth=1 "$mirror_url"; then echo "Successfully cloned from $mirror_url" exit 0 fi