Skip to content

Commit e4a801d

Browse files
committed
MC-37324: Add fallback to 'patch' command when 'git' command is not available
1 parent 678e650 commit e4a801d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

config/services.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<service id="Magento\CloudPatches\Patch\PatchIntegrityException" autowire="false"/>
2121
<service id="Magento\CloudPatches\Patch\Pool\PatchNotFoundException" autowire="false"/>
2222
<service id="Magento\CloudPatches\Patch\PatchCommandNotFound" autowire="false"/>
23+
<service id="Magento\CloudPatches\Patch\PatchCommandException" autowire="false"/>
2324
<service id="Magento\CloudPatches\Patch\ApplierException" autowire="false"/>
2425
<service id="Magento\CloudPatches\Shell\PackageNotFoundException" autowire="false"/>
2526
<service id="Magento\CloudPatches\Patch\Data\Patch" autowire="false"/>

src/Patch/PatchCommand.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,6 @@ public function revertCheck(string $patch)
6363
$this->getCommand()->revertCheck($patch);
6464
}
6565

66-
/**
67-
* @inheritDoc
68-
*/
69-
public function isInstalled(): bool
70-
{
71-
return $this->getCommand()->isInstalled();
72-
}
73-
7466
/**
7567
* Return first available command
7668
*

0 commit comments

Comments
 (0)