From 1908d8a180dc2b595bc4494948ccb7ac6bddf504 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Dec 2024 15:12:44 +0100 Subject: [PATCH] fix: --cone --- app/Models/Application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Models/Application.php b/app/Models/Application.php index 82ad0c2d1..7fc114094 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",