mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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 {
|
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
|
||||||
|
|
Loading…
Reference in a new issue