Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to sync added files with ignored paths #18

Open
chrisdothtml opened this issue Jan 22, 2020 · 0 comments
Open

Fails to sync added files with ignored paths #18

chrisdothtml opened this issue Jan 22, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@chrisdothtml
Copy link
Collaborator

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

@chrisdothtml chrisdothtml added the bug Something isn't working label Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant