Update the plugin git url pattern (#1047)

This commit is contained in:
Wu Clan
2026-01-27 17:06:43 +08:00
committed by GitHub
parent d397a0d985
commit ac19f8480f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ async def install_git_plugin(repo_url: str) -> str:
"""
match = is_git_url(repo_url)
if not match:
raise errors.RequestError(msg='Git 仓库地址格式非法')
raise errors.RequestError(msg='Git 仓库地址格式非法,仅支持 HTTP/HTTPS 协议')
repo_name = match.group('repo')
path = anyio.Path(PLUGIN_DIR / repo_name)
if await path.exists():