mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Fix benchmark panic
Need to initialize the Config with InitializeConfig().
This commit is contained in:
parent
23a711a29a
commit
23a5711d26
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ var benchmark = &cobra.Command{
|
||||||
Short: "Benchmark hugo by building a site a number of times",
|
Short: "Benchmark hugo by building a site a number of times",
|
||||||
Long: `Hugo can build a site many times over and anlyze the
|
Long: `Hugo can build a site many times over and anlyze the
|
||||||
running process creating a `,
|
running process creating a `,
|
||||||
Run: bench,
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
InitializeConfig()
|
||||||
|
bench(cmd, args)
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in a new issue