From fd34cbfc8a36a96d120e7b6a8226a27ac3dc8d95 Mon Sep 17 00:00:00 2001 From: RB Date: Mon, 28 Apr 2025 23:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E8=BD=BD=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MRobot.py | 4 ++-- MRobot_repo | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 160000 MRobot_repo diff --git a/MRobot.py b/MRobot.py index 89fdbef..a45cfaf 100644 --- a/MRobot.py +++ b/MRobot.py @@ -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}") diff --git a/MRobot_repo b/MRobot_repo new file mode 160000 index 0000000..4539cfb --- /dev/null +++ b/MRobot_repo @@ -0,0 +1 @@ +Subproject commit 4539cfb332e1d96d7ac5b0d9c735a75900a2aa0c