mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
This commit is contained in:
		@@ -764,7 +764,7 @@ func (c *commandeer) handleEvents(watcher *watcher.Batcher,
 | 
				
			|||||||
			if ev.Op&fsnotify.Chmod == fsnotify.Chmod {
 | 
								if ev.Op&fsnotify.Chmod == fsnotify.Chmod {
 | 
				
			||||||
				continue
 | 
									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 {
 | 
									for _, configFile := range c.configFiles {
 | 
				
			||||||
					counter := 0
 | 
										counter := 0
 | 
				
			||||||
					for watcher.Add(configFile) != nil {
 | 
										for watcher.Add(configFile) != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user