Skip to content

Commit 44fc624

Browse files
committed
Improve compatibility: disable POSIX mode for patch command
Enables new file creation via patches - Fixes #1
1 parent 69b1ad8 commit 44fc624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatchApplicator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private function executePatchCommand($method, $targetDirectory, $patchFile, $str
127127
$cwd = null;
128128

129129
if ($method === self::METHOD_PATCH && $this->hasPatchCommand()) {
130-
$cmd = ['patch', '--posix', '--batch', '--forward', '--strip=' . $stripPathComponents, '--input='.$patchFile, '--directory='.$targetDirectory];
130+
$cmd = ['patch', '--batch', '--forward', '--strip=' . $stripPathComponents, '--input='.$patchFile, '--directory='.$targetDirectory];
131131

132132
if (!$keepEmptyFiles) {
133133
$cmd[] = '--remove-empty-files';

0 commit comments

Comments
 (0)