From: Noah Campbell Date: Sat, 2 Nov 2013 03:36:11 +0000 (-0700) Subject: Fix benchmark panic X-Git-Tag: v0.9~18 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=23a5711d260a802091099fa02b11ea84ee898733;p=brevno-suite%2Fhugo Fix benchmark panic Need to initialize the Config with InitializeConfig(). --- diff --git a/commands/benchmark.go b/commands/benchmark.go index 010c1ed2..dd3634b1 100644 --- a/commands/benchmark.go +++ b/commands/benchmark.go @@ -27,7 +27,10 @@ var benchmark = &cobra.Command{ Short: "Benchmark hugo by building a site a number of times", Long: `Hugo can build a site many times over and anlyze the running process creating a `, - Run: bench, + Run: func(cmd *cobra.Command, args []string) { + InitializeConfig() + bench(cmd, args) + }, } func init() {