Skip to content

Commit 5268996

Browse files
authored
Fix freeform patcher applying patch during dry run
The freeform patcher was using the regular args for the dry run instead of the dry run args. If dry run args were provided, the patch was applied twice.
1 parent 438489f commit 5268996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Patcher/FreeformPatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function apply(Patch $patch, string $path): bool
2929
// If we have dry-run args, do a dry-run.
3030
if (!empty($dryRunArgs)) {
3131
$status = $this->executeCommand(
32-
'%s ' . $args,
32+
'%s ' . $dryRunArgs,
3333
$patchTool,
3434
$patch->depth,
3535
$path,

0 commit comments

Comments
 (0)