From 49c3ef5545fbd6287c8cb5e4a19fe26ae591f76e Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Thu, 26 Mar 2026 14:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(data=5Fsource):=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E4=B8=8B=E8=BD=BD=E6=B7=BB=E5=8A=A0branch=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/builtin_plugins/plugin_store/data_source.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zhenxun/builtin_plugins/plugin_store/data_source.py b/zhenxun/builtin_plugins/plugin_store/data_source.py index f511df53..e4a6dec6 100644 --- a/zhenxun/builtin_plugins/plugin_store/data_source.py +++ b/zhenxun/builtin_plugins/plugin_store/data_source.py @@ -259,6 +259,7 @@ class StoreManager: plugin_info: StorePluginInfo, is_external: bool = False, source: str | None = None, + branch: str = "main", ): """安装插件 @@ -283,7 +284,7 @@ class StoreManager: plugin_name = module_path.split(".")[-1] or plugin_info.module if is_dir: files = await RepoFileManager.list_directory_files( - github_url, replace_module_path, repo_type=repo_type + github_url, replace_module_path, branch, repo_type=repo_type ) else: files = [RepoFileInfo(path=f"{replace_module_path}.py", is_dir=False)] @@ -298,6 +299,7 @@ class StoreManager: result = await RepoFileManager.download_files( github_url, download_files, + branch, repo_type=repo_type, sparse_path=replace_module_path, target_dir=target_dir,