fix: public git

This commit is contained in:
Andras Bacsai
2023-10-11 12:56:57 +02:00
parent 9f8c44d96b
commit dcfcee1db6
3 changed files with 10 additions and 7 deletions

View File

@@ -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;