shithub: hugo

Download patch

ref: f8446188dbec8378f34f0fea39161a49fcc46083
parent: d523aa4bb03e913f55c2f89544e6112e320c975a
author: Kris Budhram <[email protected]>
date: Sun Oct 14 19:04:52 EDT 2018

Skip watcher event files if matched in ignoreFiles

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -839,6 +839,9 @@
 		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