hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit e3cb8e6c7874d7dfe1d4d1c7f5c9765b681fb647
parent 55251aa89099358c040d38f3af48e3699d67bab2
Author: Anthony Fok <foka@debian.org>
Date:   Thu, 10 Jan 2019 15:57:30 -0700

Add configFile(s) back to the watch list after RENAME event too

Alleviates #5205

Diffstat:
Mcommands/hugo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -764,7 +764,7 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
 			if ev.Op&fsnotify.Chmod == fsnotify.Chmod {
 				continue
 			}
-			if ev.Op&fsnotify.Remove == fsnotify.Remove {
+			if ev.Op&fsnotify.Remove == fsnotify.Remove || ev.Op&fsnotify.Rename == fsnotify.Rename {
 				for _, configFile := range c.configFiles {
 					counter := 0
 					for watcher.Add(configFile) != nil {