Supporto Modifiche: fix cleanup worktree sync Git

This commit is contained in:
michele 2026-03-30 16:00:36 +00:00
parent 46d21e2a9f
commit 04ce45e0f1

View File

@ -134,7 +134,7 @@ public function handle(): int
return self::FAILURE;
}
$cleanupWorktree = static function () use ($repoPath, $worktreePath): void {
$cleanupWorktree = function () use ($repoPath, $worktreePath): void {
Process::path($repoPath)->timeout(1800)->run($this->gitCommandArgs($repoPath, ['worktree', 'remove', '--force', $worktreePath]));
if (is_dir($worktreePath)) {
File::deleteDirectory($worktreePath);