diff --git a/dist/index.js b/dist/index.js index 9d959a9..d45c61e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2453,7 +2453,7 @@ function getFetchUrl(settings) { return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`; } // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`; + return `${serviceUrl.origin}${serviceUrl.pathname}/${encodedOwner}/${encodedName}`; } exports.getFetchUrl = getFetchUrl; function getServerUrl(url) { diff --git a/src/url-helper.ts b/src/url-helper.ts index 64ecbf3..a3c0f10 100644 --- a/src/url-helper.ts +++ b/src/url-helper.ts @@ -17,7 +17,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string { } // "origin" is SCHEME://HOSTNAME[:PORT] - return `${serviceUrl.origin}/${encodedOwner}/${encodedName}` + return `${serviceUrl.origin}${serviceUrl.pathname}/${encodedOwner}/${encodedName}` } export function getServerUrl(url?: string): URL {