diff options
author | Kris Budhram <krisbudhram@users.noreply.github.com> | 2018-10-14 23:04:52 -0400 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-11-02 09:50:31 +0100 |
commit | f8446188dbec8378f34f0fea39161a49fcc46083 (patch) | |
tree | c39bdf78cb11a8f4d2dc415b3902760d2ddc89d4 /commands/hugo.go | |
parent | d523aa4bb03e913f55c2f89544e6112e320c975a (diff) |
Skip watcher event files if matched in ignoreFiles
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 3 |
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 |