forked from refinedev/refine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path@changesets+git+1.3.2.patch
26 lines (26 loc) · 1.69 KB
/
@changesets+git+1.3.2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/node_modules/@changesets/git/dist/git.cjs.dev.js b/node_modules/@changesets/git/dist/git.cjs.dev.js
index c7a8e91..b9e9d1a 100644
--- a/node_modules/@changesets/git/dist/git.cjs.dev.js
+++ b/node_modules/@changesets/git/dist/git.cjs.dev.js
@@ -88,7 +88,7 @@ async function getCommitsThatAddFiles(gitPaths, cwd) {
do {
// Fetch commit information for all paths we don't have yet
const commitInfos = await Promise.all(remaining.map(async gitPath => {
- const [commitSha, parentSha] = (await spawn__default['default']("git", ["log", "--diff-filter=A", "--max-count=1", "--pretty=format:%h:%p", gitPath], {
+ const [commitSha, parentSha] = (await spawn__default['default']("git", ["log", "--follow", "--diff-filter=A", "--max-count=1", "--pretty=format:%h:%p", gitPath], {
cwd
})).stdout.toString().split(":");
return {
diff --git a/node_modules/@changesets/git/dist/git.cjs.prod.js b/node_modules/@changesets/git/dist/git.cjs.prod.js
index 7fc9a15..716117d 100644
--- a/node_modules/@changesets/git/dist/git.cjs.prod.js
+++ b/node_modules/@changesets/git/dist/git.cjs.prod.js
@@ -59,7 +59,7 @@ async function getCommitsThatAddFiles(gitPaths, cwd) {
let remaining = gitPaths;
for (;;) {
const commitInfos = await Promise.all(remaining.map((async gitPath => {
- const [commitSha, parentSha] = (await spawn__default.default("git", [ "log", "--diff-filter=A", "--max-count=1", "--pretty=format:%h:%p", gitPath ], {
+ const [commitSha, parentSha] = (await spawn__default.default("git", [ "log", "--follow", "--diff-filter=A", "--max-count=1", "--pretty=format:%h:%p", gitPath ], {
cwd: cwd
})).stdout.toString().split(":");
return {