From 4c8f4bdc40a644db67b4468842e454e439891c72 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Sat, 15 Jun 2024 20:08:51 -0400 Subject: [PATCH] chore: hardcode fix getFetchUrl --- src/url-helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/url-helper.ts b/src/url-helper.ts index 6807b7f..a45c60d 100644 --- a/src/url-helper.ts +++ b/src/url-helper.ts @@ -12,11 +12,11 @@ export function getFetchUrl(settings: IGitSourceSettings): string { const encodedOwner = encodeURIComponent(settings.repositoryOwner) const encodedName = encodeURIComponent(settings.repositoryName) if (settings.sshKey) { - return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git` + return `git@${serviceUrl.hostname}:2222/${encodedOwner}/${encodedName}.git` } // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}` + return `${serviceUrl.origin}/git/${encodedOwner}/${encodedName}` } export function getServerUrl(url?: string): URL {