mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
lint
This commit is contained in:
parent
038dba6710
commit
f52c5ae358
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user