Skip to content

Commit f6bae80

Browse files
committed
fix(import): Rebase patch copies, too
1 parent f7a8e7b commit f6bae80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands/import/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class ImportCommand extends Command {
152152
.replace(/^([-+]{3} [ab])/gm, replacement)
153153
.replace(/^(diff --git a)/gm, replacement)
154154
.replace(/^(diff --git \S+ b)/gm, replacement)
155+
.replace(/^(copy (from|to)) /gm, `$1 ${formattedTarget}/`)
155156
.replace(/^(rename (from|to)) /gm, `$1 ${formattedTarget}/`);
156157
}
157158

0 commit comments

Comments
 (0)