-
-
Notifications
You must be signed in to change notification settings - Fork 313
Closed
Description
Hi!
i've encounter an issue when using this tool. It failed with patch parsing error.
From logs i could see that somehow my system setup uses different prefixes while producing patch file.
Here is first line of produced patch:
diff --git i/node_modules/@storybook/ui/paths.js c/node_modules/@storybook/ui/paths.jsI suggest adding options (https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---src-prefixltprefixgt & https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---dst-prefixltprefixgt) explicitly here
patch-package/src/makePatch.ts
Lines 211 to 217 in 5c2c92b
| const diffResult = git( | |
| "diff", | |
| "--cached", | |
| "--no-color", | |
| "--ignore-space-at-eol", | |
| "--no-ext-diff", | |
| ) |
like this
const diffResult = git(
"diff",
"--cached",
"--no-color",
"--ignore-space-at-eol",
"--no-ext-diff",
"--src-prefix=a/",
"--dst-prefix=b/"
);Thanks
Metadata
Metadata
Assignees
Labels
No labels