🐛 修复非git仓库的初始化更新

This commit is contained in:
HibiKier
2025-08-01 15:23:54 +08:00
parent fd47ca3ce8
commit de92d04dcc
3 changed files with 5 additions and 4 deletions
@@ -1,4 +1,5 @@
import os
from pathlib import Path
import shutil
import tarfile
import zipfile
@@ -245,14 +246,14 @@ class UpdateManager:
elif source == "git":
result = await GithubRepoManager.update(
GIT_GITHUB_URL,
BASE_PATH,
Path(),
use_git=update_type == "git",
force=force,
)
else:
result = await AliyunRepoManager.update(
GIT_GITHUB_URL,
BASE_PATH,
Path(),
force=force,
)
if not result.success: