diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-07 22:11:15 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-07 22:11:15 +0200 |
commit | 49a104309d53af243b32443a59bdc2a6fc9beeef (patch) | |
tree | 3e94baabc1ec63078cea0884c9c19ccec62ae330 /hugolib | |
parent | 5be0448635fdf5fe6b1ee673e869f2b9baf1a5c6 (diff) |
hugolib: Fix live-reload regression for add/removal of dirs
This reverts commit b5b6e81c0269abf9b0f4bc6a127744a25344e5c6.
That change breaks watching of new directories (new dirs, deleted dirs).
Reopens #3325
Fixes #3569
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 8740f11d5..0dfa3a30e 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -753,9 +753,6 @@ func (s *Site) reProcess(events []fsnotify.Event) (whatChanged, error) { go pageConverter(pageChan, convertResults, wg2) } - sp := source.NewSourceSpec(s.Cfg, s.Fs) - fs := sp.NewFilesystem("") - for _, ev := range sourceChanged { // The incrementalReadCollator below will also make changes to the site's pages, // so we do this first to prevent races. @@ -778,15 +775,6 @@ func (s *Site) reProcess(events []fsnotify.Event) (whatChanged, error) { } } - // ignore files shouldn't be proceed - if fi, err := s.Fs.Source.Stat(ev.Name); err != nil { - continue - } else { - if ok, err := fs.ShouldRead(ev.Name, fi); err != nil || !ok { - continue - } - } - sourceReallyChanged = append(sourceReallyChanged, ev) } |