mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user