-
-
Notifications
You must be signed in to change notification settings - Fork 619
Infinite Git Refresh Loop When Running Watchman #1720
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
Labels
bug
Something isn't working
Comments
Following does not resolve the issue, as filesystem_watchers = {
ignore_dirs = {
"^.git$",
},
}, |
Re-evaluate the value of watching |
May resolve #1719 |
alex-courtis
added a commit
that referenced
this issue
Nov 5, 2022
alex-courtis
added a commit
that referenced
this issue
Nov 7, 2022
alex-courtis
added a commit
that referenced
this issue
Nov 7, 2022
alex-courtis
added a commit
that referenced
this issue
Nov 12, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Running the standard git watchman hook results in an infinite git refresh loop.
See "Using Watchman and the sample hook script" at https://github.blog/2022-06-29-improve-git-monorepo-performance-with-a-file-system-monitor/
Neovim version
Operating system and version
Linux 6.0.6-arch1-1
nvim-tree version
a0f3e99
Minimal config
Steps to reproduce
cp .git/hooks/fsmonitor-watchman.sample .git/hooks/query-watchman
git config core.fsmonitor .git/hooks/query-watchman
nvim -nu /tmp/nvt-min.lua
:NvimTreeOpen
open any file
:w
Expected behavior
One debounced git refresh following write.
Actual behavior
Infinite loop of refreshes following watchman writing
.git/.watchman-cookie-emperor-xxxxxx-yyy
The text was updated successfully, but these errors were encountered: