An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix repository URL handling in PublicGitRepository.php
Andras Bacsai4af766162e5b
diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.phpindex 0578421b53..c6c699acf5 100644--- a/app/Livewire/Project/New/PublicGitRepository.php+++ b/app/Livewire/Project/New/PublicGitRepository.php@@ -97,10 +97,14 @@ class PublicGitRepository extends Componentif ((str($this->repository_url)->startsWith('https://') ||str($this->repository_url)->startsWith('http://')) &&- !str($this->repository_url)->endsWith('.git')+ !str($this->repository_url)->endsWith('.git') &&+ !str($this->repository_url)->contains('github.com')) {$this->repository_url = $this->repository_url . '.git';}+ if (str($this->repository_url)->contains('github.com')) {+ $this->repository_url = str($this->repository_url)->before('.git')->value();+ }} catch (\Throwable $e) {return handleError($e, $this);}