Fix site reset for benchmarks etc.
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 14 Aug 2016 23:20:16 +0000 (01:20 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:21 +0000 (18:32 +0300)
Updates #2309

hugolib/site.go

index 22b22773dcb7435724e7eb6f5cc75dcff79f650d..27fc2416913faafd552ae13754d0a9a23d3baf9c 100644 (file)
@@ -112,7 +112,7 @@ type Site struct {
 
 // reset returns a new Site prepared for rebuild.
 func (s *Site) reset() *Site {
-       return &Site{Language: s.Language}
+       return &Site{Language: s.Language, owner: s.owner}
 }
 
 // newSite creates a new site in the given language.