summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorKris Budhram <krisbudhram@users.noreply.github.com>2018-10-14 23:04:52 -0400
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-02 09:50:31 +0100
commitf8446188dbec8378f34f0fea39161a49fcc46083 (patch)
treec39bdf78cb11a8f4d2dc415b3902760d2ddc89d4 /commands
parentd523aa4bb03e913f55c2f89544e6112e320c975a (diff)
Skip watcher event files if matched in ignoreFiles
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo.go3
1 files changed, 3 insertions, 0 deletions
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