diff options
author | Anthony Fok <foka@debian.org> | 2019-01-10 15:57:30 -0700 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2019-01-10 15:57:30 -0700 |
commit | e3cb8e6c7874d7dfe1d4d1c7f5c9765b681fb647 (patch) | |
tree | 4fa6f94b9b182dad787c790afab840e48f0ddd41 /commands | |
parent | 55251aa89099358c040d38f3af48e3699d67bab2 (diff) |
Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index b94356838..3690c0ad5 100644 --- 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 { |