mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-04-29 07:40:55 +08:00
修改下载方式
This commit is contained in:
parent
0886f91b01
commit
fd34cbfc8a
@ -32,8 +32,8 @@ class MRobotApp:
|
|||||||
try:
|
try:
|
||||||
if os.path.exists(REPO_DIR):
|
if os.path.exists(REPO_DIR):
|
||||||
shutil.rmtree(REPO_DIR)
|
shutil.rmtree(REPO_DIR)
|
||||||
print(f"正在克隆仓库到 {REPO_DIR}...")
|
print(f"正在克隆仓库到 {REPO_DIR}(仅克隆当前文件内容)...")
|
||||||
Repo.clone_from(REPO_URL, REPO_DIR)
|
Repo.clone_from(REPO_URL, REPO_DIR, multi_options=["--depth=1"])
|
||||||
print("仓库克隆成功!")
|
print("仓库克隆成功!")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"克隆仓库时出错: {e}")
|
print(f"克隆仓库时出错: {e}")
|
||||||
|
1
MRobot_repo
Submodule
1
MRobot_repo
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 4539cfb332e1d96d7ac5b0d9c735a75900a2aa0c
|
Loading…
Reference in New Issue
Block a user