summaryrefslogtreecommitdiffhomepage
path: root/commands/benchmark.go
diff options
context:
space:
mode:
authorNoah Campbell <[email protected]>2013-11-01 20:36:11 -0700
committerNoah Campbell <[email protected]>2013-11-01 20:36:11 -0700
commit23a5711d260a802091099fa02b11ea84ee898733 (patch)
treecfcef24502c0c6e9da6ecb4bfc12582536cef8b1 /commands/benchmark.go
parent23a711a29a587651cfb85f53223dc0260367ac6a (diff)
downloadhugo-23a5711d260a802091099fa02b11ea84ee898733.tar.gz
hugo-23a5711d260a802091099fa02b11ea84ee898733.zip
Fix benchmark panic
Need to initialize the Config with InitializeConfig().
Diffstat (limited to 'commands/benchmark.go')
-rw-r--r--commands/benchmark.go5
1 files changed, 4 insertions, 1 deletions
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() {