shithub: hugo

Download patch

ref: 23a5711d260a802091099fa02b11ea84ee898733
parent: 23a711a29a587651cfb85f53223dc0260367ac6a
author: Noah Campbell <[email protected]>
date: Fri Nov 1 16:36:11 EDT 2013

Fix benchmark panic

Need to initialize the Config with InitializeConfig().

--- a/commands/benchmark.go
+++ b/commands/benchmark.go
@@ -27,7 +27,10 @@
 	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() {