Skip watcher event files if matched in ignoreFiles
authorKris Budhram <krisbudhram@users.noreply.github.com>
Mon, 15 Oct 2018 03:04:52 +0000 (23:04 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 2 Nov 2018 08:50:31 +0000 (09:50 +0100)
commands/hugo.go

index ffc6f0228f144e15b14baf07c646c1bf08896399..7d2fa980389da480d1152c81e31b01ec34cdc62e 100644 (file)
@@ -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