mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
commands: Fix server panic regression
And now with a proper server test. Fixes #9518 Fixes #9530 Fixes #9539
This commit is contained in:
parent
4ada09415d
commit
aebde49b88
4 changed files with 45 additions and 15 deletions
|
@ -422,7 +422,7 @@ func (c *commandeer) loadConfig() error {
|
|||
}
|
||||
c.hugoSites = h
|
||||
// TODO(bep) improve.
|
||||
if c.buildLock == nil {
|
||||
if c.buildLock == nil && h != nil {
|
||||
c.buildLock = h.LockBuild
|
||||
}
|
||||
close(c.created)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue