Skip to content

fix(#2243): fs_watcher not started for .git folders (Win) #2265

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

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

akriese
Copy link
Contributor

@akriese akriese commented Jun 11, 2023

Resolves #2243
The fix happens inside a if vim.fn.has "win32" block and thus, does not affect WSL.
If necessary, I could install cygwin to test it on that too. Also, I wasn't sure, what test case (in CONTRIBUTING.md) meant, as I didnt find a test setup for the repo. The issue describes the exact problematic case and why this fix works for it. If more description is needed, please tell me :)

This fixes the issue described in nvim-tree#2243, where the .git folder's path
ends on a weird character produced by `cygpath` when the newline
character is fed into it (when using shell=powershell)
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution.

This is behind the windows feature flags and will only affect a small number of users.

I cannot review or test this one; I assume it is working for you.

Please be prepared to resolve any issues that may arise from this change.

@alex-courtis alex-courtis merged commit f5804ce into nvim-tree:master Jun 12, 2023
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.

fs_event watcher not started for .git folder on Windows
2 participants