hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 09ed41be71de582d829554e145bf9d2d59f34aae
parent dc3618abcd763e97b245e48468dcde7409275f1b
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue, 16 Aug 2016 12:49:07 +0200

Add a global Reset func

So we can do some benchmarking.

Diffstat:
Mcommands/hugo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 }