mirror of http://gitea.com/actions/checkout
Merge 9b92a3558d
into b80ff79f17
This commit is contained in:
commit
f48aa9378c
|
@ -2448,8 +2448,7 @@ function getFetchUrl(settings) {
|
||||||
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git';
|
const user = settings.sshUser.length > 0 ? settings.sshUser : 'git';
|
||||||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`;
|
||||||
}
|
}
|
||||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
return `${serviceUrl}/${encodedOwner}/${encodedName}`;
|
||||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`;
|
|
||||||
}
|
}
|
||||||
exports.getFetchUrl = getFetchUrl;
|
exports.getFetchUrl = getFetchUrl;
|
||||||
function getServerUrl(url) {
|
function getServerUrl(url) {
|
||||||
|
|
|
@ -16,8 +16,7 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
|
||||||
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`
|
return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git`
|
||||||
}
|
}
|
||||||
|
|
||||||
// "origin" is SCHEME://HOSTNAME[:PORT]
|
return `${serviceUrl}/${encodedOwner}/${encodedName}`
|
||||||
return `${serviceUrl.origin}/${encodedOwner}/${encodedName}`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getServerUrl(url?: string): URL {
|
export function getServerUrl(url?: string): URL {
|
||||||
|
|
Loading…
Reference in New Issue