2
0
mirror of https://github.com/RouxAntoine/checkout.git synced 2025-04-28 12:08:38 +00:00

Compare commits

...

1 Commits
main ... v4.1.8

Author SHA1 Message Date
6e9cedf8fd
fix: resolve bug with path prefix on server url
Close Issue 1370
2024-08-25 16:58:32 +02:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -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) {

View File

@ -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 {