diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-01-06 10:37:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-01-06 10:37:04 +0100 |
commit | 059e8458d690dbb9fcd3ebd58cfc61b062d3138e (patch) | |
tree | 018077b5603b8d1c19ea91f8279f4d3fe7587459 | |
parent | ab82a27d055c3aa177821d81a45a5c6e972aa29e (diff) | |
download | hugo-059e8458d690dbb9fcd3ebd58cfc61b062d3138e.tar.gz hugo-059e8458d690dbb9fcd3ebd58cfc61b062d3138e.zip |
Fix hugo benchmark --renderToMemory
Fixes #4218
-rw-r--r-- | commands/benchmark.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/benchmark.go b/commands/benchmark.go index 77790e24a..a66aee0b5 100644 --- a/commands/benchmark.go +++ b/commands/benchmark.go @@ -48,7 +48,11 @@ func init() { } func benchmark(cmd *cobra.Command, args []string) error { - c, err := InitializeConfig(false, nil, benchmarkCmd) + cfgInit := func(c *commandeer) error { + c.Set("renderToMemory", renderToMemory) + return nil + } + c, err := InitializeConfig(false, cfgInit, benchmarkCmd) if err != nil { return err } |