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

Normalize file paths to posix for gitignore calculation #143

Merged
merged 1 commit into from Jun 2, 2020

Conversation

nzakas
Copy link
Contributor

@nzakas nzakas commented May 25, 2020

This at least solves the problem in #133 when using Windows that I mentioned. The test I added works on Windows to verify the fix but has no effect on Linux because the filepaths are already normalized.

I don't think it fixes everything in #133, as it's really hard to test all those scenarios with the limited public interface.

@sindresorhus sindresorhus changed the title Normalize filepaths to posix for gitignore calculation Normalize file paths to posix for gitignore calculation Jun 2, 2020
@sindresorhus sindresorhus merged commit f2bdce6 into sindresorhus:master Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants