If a PR is landed that adds new files that have ignored paths (e.g. if someone force-added foo/fixtures/node_modules/bar), the added files will silently not be synced.
As far as I can tell there's no way to temporarily disable the usage of .gitignore for a single git command, and there's no way with git apply to force ignored filepaths to be created
Possible solution
One possible fix could be to find all the added files from each diff, use git check-ignore to determine whether their path is ignored, and force git add them individually
If a PR is landed that adds new files that have ignored paths (e.g. if someone force-added
foo/fixtures/node_modules/bar), the added files will silently not be synced.As far as I can tell there's no way to temporarily disable the usage of
.gitignorefor a single git command, and there's no way withgit applyto force ignored filepaths to be createdPossible solution
One possible fix could be to find all the added files from each diff, use git check-ignore to determine whether their path is ignored, and force
git addthem individually