Skip to content

Commit

Permalink
Merge pull request #136 from navarr/patch-1
Browse files Browse the repository at this point in the history
Add switch to $patch_levels for Magento 2 Official Patches
  • Loading branch information
cweagans authored Jul 17, 2017
2 parents 6bd6ecd + 2ab836b commit f296498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ protected function getAndApplyPatch(RemoteFilesystem $downloader, $install_path,
$patched = FALSE;
// The order here is intentional. p1 is most likely to apply with git apply.
// p0 is next likely. p2 is extremely unlikely, but for some special cases,
// it might be useful.
$patch_levels = array('-p1', '-p0', '-p2');
// it might be useful. p4 is useful for Magento 2 patches
$patch_levels = array('-p1', '-p0', '-p2', '-p4');
foreach ($patch_levels as $patch_level) {
$checked = $this->executeCommand('cd %s && git --git-dir=. apply --check %s %s', $install_path, $patch_level, $filename);
if ($checked) {
Expand Down

0 comments on commit f296498

Please sign in to comment.