mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-04 03:10:01 +08:00
🐛 修复非git仓库的初始化更新
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user