From 65e6681ce3291e182fb93c0ec7a5aac03fb3b35f Mon Sep 17 00:00:00 2001 From: Vordgi Date: Sun, 1 Feb 2026 13:02:47 +0000 Subject: [PATCH] fix: support git protocol in readme --- shared/utils/git-providers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/utils/git-providers.ts b/shared/utils/git-providers.ts index e8b36bd30..83907593b 100644 --- a/shared/utils/git-providers.ts +++ b/shared/utils/git-providers.ts @@ -265,8 +265,8 @@ export function normalizeGitUrl(input: string): string | null { const normalized = raw.replace(/^git\+/, '') - // Handle ssh:// URLs by converting to https:// - if (/^ssh:\/\//i.test(normalized)) { + // Handle ssh:// and git:// URLs by converting to https:// + if (/^(ssh|git):\/\//i.test(normalized)) { try { const url = new URL(normalized) const path = url.pathname.replace(/^\/*/, '')