mirror of
https://github.com/actions/checkout.git
synced 2026-05-24 11:08:53 +00:00
Merge c974278bdf into 900f2210b1
This commit is contained in:
commit
0ddd89002e
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -2731,7 +2731,8 @@ function getFetchUrl(settings) {
|
|||||||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||||
}
|
}
|
||||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
const serviceUrlBase = pruneSuffix(`${serviceUrl.origin}${serviceUrl.pathname}`, '/');
|
||||||
|
return `${serviceUrlBase}/${encodedOwner}/${encodedName}`;
|
||||||
}
|
}
|
||||||
function getServerUrl(url) {
|
function getServerUrl(url) {
|
||||||
let resolvedUrl = process.env['GITHUB_SERVER_URL'] || 'https://github.com';
|
let resolvedUrl = process.env['GITHUB_SERVER_URL'] || 'https://github.com';
|
||||||
|
|||||||
@ -17,7 +17,11 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
|
const serviceUrlBase = pruneSuffix(
|
||||||
|
`${serviceUrl.origin}${serviceUrl.pathname}`,
|
||||||
|
'/'
|
||||||
|
)
|
||||||
|
return `${serviceUrlBase}/${encodedOwner}/${encodedName}`
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getServerUrl(url?: string): URL {
|
export function getServerUrl(url?: string): URL {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user