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:
Manuel 2024-08-01 16:00:48 +02:00 committed by GitHub
parent 3146433190
commit 32e128f209
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)