mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-27 21:51:13 +00:00
Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
This commit is contained in:
parent
55251aa890
commit
e3cb8e6c78
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue