summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-24 09:26:30 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-05-24 12:42:56 +0200
commit9a235d0afca6125f7cf222ae0d66a5fe91ae8694 (patch)
tree00d0b6b3edfda3e7e2ca90f0e6def9e64d301912 /hugolib/hugo_sites_build.go
parent99407c39ba92b3bfc569a505b05033e04b242e8d (diff)
Fix regression with site.IsServer when not running a server
Fixes #11006
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 3464385d3..c801ae3df 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -185,7 +185,7 @@ func (h *HugoSites) initRebuild(config *BuildCfg) error {
return errors.New("rebuild does not support 'ResetState'")
}
- if !h.Configs.Base.Internal.Running {
+ if !h.Configs.Base.Internal.Watch {
return errors.New("rebuild called when not in watch mode")
}