mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
fix(watch): exclude .git when using inotifywait (#29914)
inotifywait man page specifies: The file must be specified with a relative or absolute path according to whether a relative or absolute path is given for watched directories. So it would only work this way in case the path is relative (which at least for gopls it is not)
This commit is contained in:
parent
3146433190
commit
32e128f209
@ -277,7 +277,7 @@ function M.inotify(path, opts, callback)
|
||||
'modify',
|
||||
'--event',
|
||||
'move',
|
||||
'@.git', -- ignore git directory
|
||||
string.format('@%s/.git', path), -- ignore git directory
|
||||
path,
|
||||
}, {
|
||||
stderr = function(err, data)
|
||||
|
Loading…
Reference in New Issue
Block a user