mirror of https://github.com/actions/checkout
Compare commits
5 Commits
d719687f77
...
dbf1108af5
| Author | SHA1 | Date |
|---|---|---|
|
|
dbf1108af5 | |
|
|
df4cb1c069 | |
|
|
c974278bdf | |
|
|
b5005fef89 | |
|
|
8e600906a0 |
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## v6.0.3
|
||||
* Fix checkout init for SHA-256 repositories by @yaananth in https://github.com/actions/checkout/pull/2439
|
||||
* fix: expand merge commit SHA regex and add SHA-256 test cases by @yaananth in https://github.com/actions/checkout/pull/2414
|
||||
|
||||
## v6.0.2
|
||||
* Fix tag handling: preserve annotations and explicit fetch-tags by @ericsciple in https://github.com/actions/checkout/pull/2356
|
||||
|
||||
|
|
|
|||
|
|
@ -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