This commit is contained in:
You-Sheng Yang 2024-05-21 17:36:51 +02:00 committed by GitHub
commit f48aa9378c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

3
dist/index.js vendored
View File

@ -2448,8 +2448,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) {

View File

@ -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 {