diff --git a/dist/index.js b/dist/index.js index c39596b..f9b0212 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2446,8 +2446,7 @@ function getFetchUrl(settings) { const user = settings.sshUser.length > 0 ? settings.sshUser : 'git'; return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`; } - // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`; + return `${serviceUrl}/${encodedOwner}/${encodedName}`; } exports.getFetchUrl = getFetchUrl; function getServerUrl(url) { diff --git a/src/url-helper.ts b/src/url-helper.ts index 64ecbf3..cc18b19 100644 --- a/src/url-helper.ts +++ b/src/url-helper.ts @@ -16,8 +16,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string { return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git` } - // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}` + return `${serviceUrl}/${encodedOwner}/${encodedName}` } export function getServerUrl(url?: string): URL {