mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
don't append '.git' for sr.ht repositories
This commit is contained in:
parent
418398a870
commit
c901ace21a
1 changed files with 2 additions and 1 deletions
|
|
@ -98,7 +98,8 @@ class PublicGitRepository extends Component
|
|||
(str($this->repository_url)->startsWith('https://') ||
|
||||
str($this->repository_url)->startsWith('http://')) &&
|
||||
!str($this->repository_url)->endsWith('.git') &&
|
||||
!str($this->repository_url)->contains('github.com')
|
||||
(!str($this->repository_url)->contains('github.com') ||
|
||||
!str($this->repository_url)->contains('git.sr.ht'))
|
||||
) {
|
||||
$this->repository_url = $this->repository_url . '.git';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue