Supporto Modifiche: fix cleanup worktree sync Git
This commit is contained in:
parent
46d21e2a9f
commit
04ce45e0f1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user