diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.php index bf6324c64..5759e335e 100644 --- a/app/Livewire/Project/New/PublicGitRepository.php +++ b/app/Livewire/Project/New/PublicGitRepository.php @@ -155,6 +155,13 @@ public function loadBranch() $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 17ef0a188..01cd67575 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 - @if (!$branchFound) -