mirror of https://github.com/actions/checkout.git
allow for subpaths in GITHUB_SERVER_URL
This commit is contained in:
parent
900f2210b1
commit
8e600906a0
|
|
@ -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