fix: --cone
This commit is contained in:
parent
70586ba213
commit
1908d8a180
1 changed files with 4 additions and 2 deletions
|
|
@ -1331,7 +1331,9 @@ public function loadComposeFile($isInit = false)
|
||||||
$currentPath = '';
|
$currentPath = '';
|
||||||
foreach ($parts as $part) {
|
foreach ($parts as $part) {
|
||||||
$currentPath .= ($currentPath ? '/' : '').$part;
|
$currentPath .= ($currentPath ? '/' : '').$part;
|
||||||
$paths->push($currentPath);
|
if (str($currentPath)->isNotEmpty()) {
|
||||||
|
$paths->push($currentPath);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $paths;
|
return $paths;
|
||||||
|
|
@ -1341,7 +1343,7 @@ public function loadComposeFile($isInit = false)
|
||||||
"mkdir -p /tmp/{$uuid}",
|
"mkdir -p /tmp/{$uuid}",
|
||||||
"cd /tmp/{$uuid}",
|
"cd /tmp/{$uuid}",
|
||||||
$cloneCommand,
|
$cloneCommand,
|
||||||
'git sparse-checkout init --cone',
|
'git sparse-checkout init',
|
||||||
"git sparse-checkout set {$fileList->implode(' ')}",
|
"git sparse-checkout set {$fileList->implode(' ')}",
|
||||||
'git read-tree -mu HEAD',
|
'git read-tree -mu HEAD',
|
||||||
"cat .$workdir$composeFile",
|
"cat .$workdir$composeFile",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue