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 @@ public function load_branch()
|
|||
(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