Skip to content

Commit

Permalink
fix: --cone
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Dec 11, 2024
1 parent 70586ba commit 1908d8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Models/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,9 @@ public function loadComposeFile($isInit = false)
$currentPath = '';
foreach ($parts as $part) {
$currentPath .= ($currentPath ? '/' : '').$part;
$paths->push($currentPath);
if (str($currentPath)->isNotEmpty()) {
$paths->push($currentPath);
}
}

return $paths;
Expand All @@ -1341,7 +1343,7 @@ public function loadComposeFile($isInit = false)
"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",
Expand Down

0 comments on commit 1908d8a

Please sign in to comment.