Skip to content

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.

fix: if git limit reached, ignore it and continue with a default selection

Andras Bacsai1c7034ff78ec
diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.php
index bf6324c64d..5759e335ec 100644
--- a/app/Livewire/Project/New/PublicGitRepository.php
+++ b/app/Livewire/Project/New/PublicGitRepository.php
@@ -155,6 +155,13 @@ class PublicGitRepository extends Component
$this->getBranch();
$this->selectedBranch = $this->git_branch;
} catch (\Throwable $e) {
+ if ($this->rate_limit_remaining == 0) {
+ $this->selectedBranch = $this->git_branch;
+ $this->branchFound = true;
+
+ return;
+ }
+ ray($this->branchFound, $this->git_branch, $this->rate_limit_remaining);
if (! $this->branchFound && $this->git_branch == 'main') {
try {
$this->git_branch = 'master';
diff --git a/resources/views/livewire/project/new/public-git-repository.blade.php b/resources/views/livewire/project/new/public-git-repository.blade.php
index 17ef0a1889..01cd67575e 100644
--- a/resources/views/livewire/project/new/public-git-repository.blade.php
+++ b/resources/views/livewire/project/new/public-git-repository.blade.php
@@ -11,14 +11,11 @@
Check repository
</x-forms.button>
</div>
- @if (!$branchFound)
- <div class="px-2 pt-4">
- <div>
- For example application deployments, checkout <a class="underline dark:text-white"
- href="https://github.com/coollabsio/coolify-examples/" target="_blank">Coolify
- Examples</a>.
- </div>
- @endif
+ <div>
+ For example application deployments, checkout <a class="underline dark:text-white"
+ href="https://github.com/coollabsio/coolify-examples/" target="_blank">Coolify
+ Examples</a>.
+ </div>
@if ($branchFound)
@if ($rate_limit_remaining && $rate_limit_reset)
<div class="flex gap-2 py-2">