Skip to content

Commit

Permalink
Skip watcher event files if matched in ignoreFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
krisbudhram authored and bep committed Nov 2, 2018
1 parent d523aa4 commit f844618
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/hugo.go
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
if istemp { if istemp {
continue continue
} }
if c.hugo.Deps.SourceSpec.IgnoreFile(ev.Name) {
continue
}
// Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these // Sometimes during rm -rf operations a '"": REMOVE' is triggered. Just ignore these
if ev.Name == "" { if ev.Name == "" {
continue continue
Expand Down

0 comments on commit f844618

Please sign in to comment.