Support of git submodules ? #817
Unanswered
bertho-zero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a monorepo organized with a git submodule and would like to know how this is handled for the git part if I start using changesets.
The monorepo is private and part of it is public, it looks like this:
So packages in
public
don't have the same git history as packages inpackages
, how do you think that will react?For example, the cwd in the method
applyReleasePlan
is always the same:changesets/packages/apply-release-plan/src/index.ts
Line 65 in 34933f0
But the method
getCommitsThatAddFiles
does not work without additional -C option to git:changesets/packages/git/src/index.ts
Lines 91 to 101 in 34933f0
If I do the equivalent manually:
git log --diff-filter=A --max-count=1 --pretty=format:%h:%p -- public/package-c/package.json # nothing
but the following works:
git -C public log --diff-filter=A --max-count=1 --pretty=format:%h:%p -- package-c/package.json # return 588fc62:b5271a4
Beta Was this translation helpful? Give feedback.
All reactions