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: --cone

Andras Bacsai1908d8a180dc
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 82ad0c2d18..7fc1140943 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -1331,7 +1331,9 @@ class Application extends BaseModel
$currentPath = '';
foreach ($parts as $part) {
$currentPath .= ($currentPath ? '/' : '').$part;
- $paths->push($currentPath);
+ if (str($currentPath)->isNotEmpty()) {
+ $paths->push($currentPath);
+ }
}
return $paths;
@@ -1341,7 +1343,7 @@ class Application extends BaseModel
"mkdir -p /tmp/{$uuid}",
"cd /tmp/{$uuid}",
$cloneCommand,
- 'git sparse-checkout init --cone',
+ 'git sparse-checkout init',
"git sparse-checkout set {$fileList->implode(' ')}",
'git read-tree -mu HEAD',
"cat .$workdir$composeFile",