mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Fix benchmark panic
Need to initialize the Config with InitializeConfig().
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user