mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 19:32:10 +00:00
Skip watcher event files if matched in ignoreFiles
This commit is contained in:
parent
d523aa4bb0
commit
f8446188db
1 changed files with 3 additions and 0 deletions
|
@ -839,6 +839,9 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
|
|||
if istemp {
|
||||
continue
|
||||
}
|
||||
if c.hugo.Deps.SourceSpec.IgnoreFile(ev.Name) {
|
||||
continue
|
||||
}
|
||||
// Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these
|
||||
if ev.Name == "" {
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue