diff --git a/src/Patcher/GitPatcher.php b/src/Patcher/GitPatcher.php index 07627159..76349631 100644 --- a/src/Patcher/GitPatcher.php +++ b/src/Patcher/GitPatcher.php @@ -58,35 +58,3 @@ public function canUse(): bool return $usable; } } -/* -$patch_levels = $this->getConfig('patch-levels'); -foreach ($patch_levels as $patch_level) { - if ($this->io->isVerbose()) { - $comment = 'Testing ability to patch with git apply.'; - $comment .= ' This command may produce errors that can be safely ignored.'; - $this->io->write('' . $comment . ''); - } - $checked = $this->executeCommand( - 'git -C %s apply --check -v %s %s', - $install_path, - $patch_level, - $filename - ); - $output = $this->executor->getErrorOutput(); - if (substr($output, 0, 7) === 'Skipped') { - // Git will indicate success but silently skip patches in some scenarios. - // - // @see https://github.com/cweagans/composer-patches/pull/165 - $checked = false; - } - if ($checked) { - // Apply the first successful style. - $patched = $this->executeCommand( - 'git -C %s apply %s %s', - $install_path, - $patch_level, - $filename - ); - break; - } - */