This commit is contained in:
LisiurDay 2024-05-22 14:50:41 +08:00 committed by GitHub
parent 038dba6710
commit f52c5ae358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -387,7 +387,7 @@ export class BaseBranch {
const path = paths.join('/').replace('.git', '');
const protocol = /\d+\.\d+\.\d+\.\d+/.test(host) ? 'http' : 'https';
const [hostname, _port] = host.split(':');
return `${protocol}://${hostname}/${path}`
return `${protocol}://${hostname}/${path}`;
} else {
return url.replace(':', '/').replace('git@', 'https://').replace('.git', '').trim();
}