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.js
I 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
|
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
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
like this
Thanks