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: public git

Andras Bacsaidcfcee1db657
diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Http/Livewire/Project/New/PublicGitRepository.php
index ebcbb8253a..f1f4e98333 100644
--- a/app/Http/Livewire/Project/New/PublicGitRepository.php
+++ b/app/Http/Livewire/Project/New/PublicGitRepository.php
@@ -72,10 +72,14 @@ class PublicGitRepository extends Component
public function load_branch()
{
try {
- $this->branch_found = false;
$this->validate([
'repository_url' => 'required|url'
]);
+ } catch (\Throwable $e) {
+ return handleError($e, $this);
+ }
+ try {
+ $this->branch_found = false;
$this->get_git_source();
$this->get_branch();
$this->selected_branch = $this->git_branch;
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 78f7742c9b..37459187b1 100644
--- a/resources/views/livewire/project/new/public-git-repository.blade.php
+++ b/resources/views/livewire/project/new/public-git-repository.blade.php
@@ -1,13 +1,13 @@
<div>
<h1>Create a new Application</h1>
<div class="pb-4">Deploy any public Git repositories.</div>
- <form class="flex flex-col gap-2" wire:submit.prevent>
+ <form class="flex flex-col gap-2" wire:submit.prevent='load_branch'>
<div class="flex flex-col gap-2">
<div class="flex flex-col">
<div class="flex items-end gap-2">
- <x-forms.input wire:keydown.enter='load_branch' id="repository_url" label="Repository URL"
+ <x-forms.input required id="repository_url" label="Repository URL"
helper="{!! __('repository.url') !!}" />
- <x-forms.button wire:click.prevent="load_branch">
+ <x-forms.button type="submit">
Check repository
</x-forms.button>
</div>
@@ -16,10 +16,9 @@
<div class="flex gap-2 py-2">
<div>Rate Limit</div>
<x-helper
- helper="Rate limit remaining: {{ $rate_limit_remaining }}<br>Rate limit reset at: {{ $rate_limit_reset }}" />
+ helper="Rate limit remaining: {{ $rate_limit_remaining }}<br>Rate limit reset at: {{ $rate_limit_reset }} UTC" />
</div>
@endif
- <h3 class="pt-8 pb-2">Details</h3>
<div class="flex flex-col gap-2 pb-6">
<div class="flex gap-2">
@if ($git_source === 'other')
diff --git a/resources/views/livewire/project/new/select.blade.php b/resources/views/livewire/project/new/select.blade.php
index a7693de0d3..2aa62e83e2 100644
--- a/resources/views/livewire/project/new/select.blade.php
+++ b/resources/views/livewire/project/new/select.blade.php
@@ -25,7 +25,7 @@
Public Repository
</div>
<div class="text-xs group-hover:text-white">
- You can deploy any kind of public repositories from the supported git servers.
+ You can deploy any kind of public repositories from the supported git providers.
</div>
</div>
</div>