summaryrefslogtreecommitdiffhomepage
path: root/hugolib/gitinfo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-01-10 10:55:03 +0100
committerBjørn Erik Pedersen <[email protected]>2017-02-04 11:37:25 +0700
commitc71e1b106e6011d148cac899f83c4685dee33a22 (patch)
treec5c7090f0c2398c7771e4908ebcc97aa7714ffd2 /hugolib/gitinfo.go
parent0ada40591216572b0e4c6a8ab986b0aa4fb13c13 (diff)
downloadhugo-c71e1b106e6011d148cac899f83c4685dee33a22.tar.gz
hugo-c71e1b106e6011d148cac899f83c4685dee33a22.zip
all: Refactor to nonglobal file systems
Updates #2701 Fixes #2951
Diffstat (limited to 'hugolib/gitinfo.go')
-rw-r--r--hugolib/gitinfo.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go
index 2893db06f..82baa3250 100644
--- a/hugolib/gitinfo.go
+++ b/hugolib/gitinfo.go
@@ -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
}