From: Bjørn Erik Pedersen Date: Tue, 16 Aug 2016 10:49:07 +0000 (+0200) Subject: Add a global Reset func X-Git-Tag: v0.17~106 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=09ed41be71de582d829554e145bf9d2d59f34aae;p=brevno-suite%2Fhugo Add a global Reset func So we can do some benchmarking. --- diff --git a/commands/hugo.go b/commands/hugo.go index a8dc8778..435f66af 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -56,7 +56,7 @@ var Hugo *hugolib.HugoSites // Reset resets Hugo ready for a new full build. This is mainly only useful // for benchmark testing etc. via the CLI commands. func Reset() error { - MainSite = nil + Hugo = nil viper.Reset() return nil }