mirror of https://github.com/actions/checkout
Compare commits
4 Commits
dbf1108af5
...
d719687f77
| Author | SHA1 | Date |
|---|---|---|
|
|
d719687f77 | |
|
|
c974278bdf | |
|
|
b5005fef89 | |
|
|
8e600906a0 |
|
|
@ -2780,7 +2780,8 @@ function getFetchUrl(settings) {
|
|||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||
}
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
||||
const serviceUrlBase = pruneSuffix(`${serviceUrl.origin}${serviceUrl.pathname}`, '/');
|
||||
return `${serviceUrlBase}/${encodedOwner}/${encodedName}`;
|
||||
}
|
||||
function getServerUrl(url) {
|
||||
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]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
|
||||
const serviceUrlBase = pruneSuffix(
|
||||
`${serviceUrl.origin}${serviceUrl.pathname}`,
|
||||
'/'
|
||||
)
|
||||
return `${serviceUrlBase}/${encodedOwner}/${encodedName}`
|
||||
}
|
||||
|
||||
export function getServerUrl(url?: string): URL {
|
||||
|
|
|
|||
Loading…
Reference in New Issue