mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 06:19:24 +00:00
fix: resolve bug with path prefix on server url
Close Issue 1370
This commit is contained in:
@@ -16,7 +16,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 {
|
||||
|
||||
Reference in New Issue
Block a user