From f6bae80ffc9f4f3e3370a491fe9af48a98947b8f Mon Sep 17 00:00:00 2001 From: Daniel Stockman Date: Tue, 10 Apr 2018 12:07:54 -0700 Subject: [PATCH] fix(import): Rebase patch copies, too --- commands/import/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/import/index.js b/commands/import/index.js index 4b91c46608..4551b41dba 100644 --- a/commands/import/index.js +++ b/commands/import/index.js @@ -152,6 +152,7 @@ class ImportCommand extends Command { .replace(/^([-+]{3} [ab])/gm, replacement) .replace(/^(diff --git a)/gm, replacement) .replace(/^(diff --git \S+ b)/gm, replacement) + .replace(/^(copy (from|to)) /gm, `$1 ${formattedTarget}/`) .replace(/^(rename (from|to)) /gm, `$1 ${formattedTarget}/`); }