mirror of
https://github.com/RouxAntoine/checkout.git
synced 2024-12-27 21:17:27 +00:00
fix: resolve bug with path prefix on server url
Close Issue 1370
This commit is contained in:
parent
cbb722410c
commit
5ed10d5a6f
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -2451,7 +2451,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}`;
|
||||
}
|
||||
function getServerUrl(url) {
|
||||
let resolvedUrl = process.env['GITHUB_SERVER_URL'] || 'https://github.com';
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user