✨ webui与resources支持git更新

This commit is contained in:
HibiKier
2025-08-01 17:01:21 +08:00
parent ab7aad0488
commit 56bb311c2b
9 changed files with 99 additions and 35 deletions
+3 -1
View File
@@ -172,7 +172,9 @@ class GithubManager(BaseRepoManager):
返回:
FileDownloadResult: 下载结果
"""
repo_name = repo_url.split("/")[-1].replace(".git", "").strip()
repo_name = (
repo_url.split("/tree/")[0].split("/")[-1].replace(".git", "").strip()
)
try:
# 解析仓库URL
repo_info = GithubUtils.parse_github_url(repo_url)