Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Fok <foka@debian.org>2019-01-11 01:57:30 +0300
committerAnthony Fok <foka@debian.org>2019-01-11 01:57:30 +0300
commite3cb8e6c7874d7dfe1d4d1c7f5c9765b681fb647 (patch)
tree4fa6f94b9b182dad787c790afab840e48f0ddd41 /commands/hugo.go
parent55251aa89099358c040d38f3af48e3699d67bab2 (diff)
Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go2
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 {