Permalink
Browse files

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

Alleviates #5205
  • Loading branch information...
anthonyfok committed Jan 10, 2019
1 parent 55251aa commit e3cb8e6c7874d7dfe1d4d1c7f5c9765b681fb647
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 {

0 comments on commit e3cb8e6

Please sign in to comment.