修改下载方式

This commit is contained in:
RB 2025-04-28 23:05:19 +08:00
parent 0886f91b01
commit fd34cbfc8a
2 changed files with 3 additions and 2 deletions

View File

@ -32,8 +32,8 @@ class MRobotApp:
try:
if os.path.exists(REPO_DIR):
shutil.rmtree(REPO_DIR)
print(f"正在克隆仓库到 {REPO_DIR}...")
Repo.clone_from(REPO_URL, REPO_DIR)
print(f"正在克隆仓库到 {REPO_DIR}(仅克隆当前文件内容)...")
Repo.clone_from(REPO_URL, REPO_DIR, multi_options=["--depth=1"])
print("仓库克隆成功!")
except Exception as e:
print(f"克隆仓库时出错: {e}")

1
MRobot_repo Submodule

@ -0,0 +1 @@
Subproject commit 4539cfb332e1d96d7ac5b0d9c735a75900a2aa0c