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.

Added " " to encapsulate branch name when cloning

Marek Štefankof9aa029e8eb2
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 66e18565bb..971f1e894f 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -579,9 +579,9 @@ class Application extends BaseModel
['repository' => $customRepository, 'port' => $customPort] = $this->customRepository();
$baseDir = $custom_base_dir ?? $this->generateBaseDir($deployment_uuid);
$commands = collect([]);
- $git_clone_command = "git clone -b {$this->git_branch}";
+ $git_clone_command = "git clone -b \"{$this->git_branch}\"";
if ($only_checkout) {
- $git_clone_command = "git clone --no-checkout -b {$this->git_branch}";
+ $git_clone_command = "git clone --no-checkout -b \"{$this->git_branch}\"";
}
if ($pull_request_id !== 0) {
$pr_branch_name = "pr-{$pull_request_id}-coolify";