From: Kris Budhram Date: Mon, 15 Oct 2018 03:04:52 +0000 (-0400) Subject: Skip watcher event files if matched in ignoreFiles X-Git-Tag: v0.51~22 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f8446188dbec8378f34f0fea39161a49fcc46083;p=brevno-suite%2Fhugo Skip watcher event files if matched in ignoreFiles --- diff --git a/commands/hugo.go b/commands/hugo.go index ffc6f022..7d2fa980 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -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