From 23a5711d260a802091099fa02b11ea84ee898733 Mon Sep 17 00:00:00 2001 From: Noah Campbell Date: Fri, 1 Nov 2013 20:36:11 -0700 Subject: [PATCH] Fix benchmark panic Need to initialize the Config with InitializeConfig(). --- commands/benchmark.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/benchmark.go b/commands/benchmark.go index 010c1ed2b..dd3634b1e 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() {