mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Skip watcher event files if matched in ignoreFiles
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d523aa4bb0
commit
f8446188db
@ -839,6 +839,9 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
|
|||||||
if istemp {
|
if istemp {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if c.hugo.Deps.SourceSpec.IgnoreFile(ev.Name) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these
|
// Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these
|
||||||
if ev.Name == "" {
|
if ev.Name == "" {
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user