Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cweagans/composer-configurable-plugin #164

Merged
merged 13 commits into from
Apr 13, 2018
Prev Previous commit
Next Next commit
Make patch levels configurable
  • Loading branch information
cweagans committed Apr 13, 2018
commit 9dc10a0b4b379347d4c719b95bd9152d6861991f
2 changes: 1 addition & 1 deletion src/Patches.php
Original file line number Diff line number Diff line change
@@ -414,7 +414,7 @@ protected function getAndApplyPatch(RemoteFilesystem $downloader, $install_path,
// 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. p4 is useful for Magento 2 patches
$patch_levels = array('-p1', '-p0', '-p2', '-p4');
$patch_levels = $this->getConfig('patch-levels');
foreach ($patch_levels as $patch_level) {
if ($this->io->isVerbose()) {
$comment = 'Testing ability to patch with git apply.';