mirror of
https://github.com/actions/checkout.git
synced 2024-04-27 16:57:09 +08:00
Merge 9b92a3558d
into 8459bc0c7e
This commit is contained in:
commit
f2c91ee268
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -2446,8 +2446,7 @@ function getFetchUrl(settings) {
|
||||
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git';
|
||||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||
}
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
||||
return `${serviceUrl}/${encodedOwner}/${encodedName}`;
|
||||
}
|
||||
exports.getFetchUrl = getFetchUrl;
|
||||
function getServerUrl(url) {
|
||||
|
@ -16,8 +16,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
|
||||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`
|
||||
}
|
||||
|
||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
|
||||
return `${serviceUrl}/${encodedOwner}/${encodedName}`
|
||||
}
|
||||
|
||||
export function getServerUrl(url?: string): URL {
|
||||
|
Loading…
Reference in New Issue
Block a user