all: Refactor to nonglobal file systems

Updates #2701
Fixes #2951
This commit is contained in:
Bjørn Erik Pedersen
2017-01-10 10:55:03 +01:00
parent 0ada405912
commit c71e1b106e
71 changed files with 2219 additions and 1731 deletions

View File

@@ -20,7 +20,6 @@ import (
"github.com/bep/gitmap"
"github.com/spf13/hugo/helpers"
jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper"
)
@@ -36,7 +35,7 @@ func (h *HugoSites) assembleGitInfo() {
gitRepo, err := gitmap.Map(workingDir, "")
if err != nil {
jww.ERROR.Printf("Got error reading Git log: %s", err)
h.Log.ERROR.Printf("Got error reading Git log: %s", err)
return
}
@@ -60,7 +59,7 @@ func (h *HugoSites) assembleGitInfo() {
filename := path.Join(filepath.ToSlash(contentRoot), contentDir, filepath.ToSlash(p.Path()))
g, ok := gitMap[filename]
if !ok {
jww.ERROR.Printf("Failed to find GitInfo for %q", filename)
h.Log.ERROR.Printf("Failed to find GitInfo for %q", filename)
return
}