Permalink
Browse files

Fix hugo benchmark --renderToMemory

Fixes #4218
  • Loading branch information...
bep committed Jan 6, 2018
1 parent ab82a27 commit 059e8458d690dbb9fcd3ebd58cfc61b062d3138e
Showing with 5 additions and 1 deletion.
  1. +5 −1 commands/benchmark.go
View
@@ -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
}

0 comments on commit 059e845

Please sign in to comment.