commands: Fix server panic regression
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 Feb 2022 18:12:04 +0000 (19:12 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 Feb 2022 20:43:26 +0000 (21:43 +0100)
commitaebde49b884c3b5ef73d8e1a01fca8a1354ac5b9
tree299616c4bda0ffe185335bf543b327d8fb6b7068
parent4ada09415dfa4c25c4fe9473fecf9e51ec740900
commands: Fix server panic regression

And now with a proper server test.

Fixes #9518
Fixes #9530
Fixes #9539
commands/commandeer.go
commands/commands_test.go
commands/server_test.go
hugolib/hugo_sites.go