From f8446188dbec8378f34f0fea39161a49fcc46083 Mon Sep 17 00:00:00 2001 From: Kris Budhram Date: Sun, 14 Oct 2018 23:04:52 -0400 Subject: [PATCH] Skip watcher event files if matched in ignoreFiles --- commands/hugo.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/hugo.go b/commands/hugo.go index ffc6f0228..7d2fa9803 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