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 {