hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 23a5711d260a802091099fa02b11ea84ee898733
parent 23a711a29a587651cfb85f53223dc0260367ac6a
Author: Noah Campbell <noahcampbell@gmail.com>
Date:   Fri,  1 Nov 2013 20:36:11 -0700

Fix benchmark panic

Need to initialize the Config with InitializeConfig().

Diffstat:
Mcommands/benchmark.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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() {