diff options
Diffstat (limited to 'hugolib/gitinfo.go')
-rw-r--r-- | hugolib/gitinfo.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go index 82baa3250..dfa2b4dc8 100644 --- a/hugolib/gitinfo.go +++ b/hugolib/gitinfo.go @@ -20,17 +20,16 @@ import ( "github.com/bep/gitmap" "github.com/spf13/hugo/helpers" - "github.com/spf13/viper" ) func (h *HugoSites) assembleGitInfo() { - if !viper.GetBool("enableGitInfo") { + if !h.Cfg.GetBool("enableGitInfo") { return } var ( - workingDir = viper.GetString("workingDir") - contentDir = viper.GetString("contentDir") + workingDir = h.Cfg.GetString("workingDir") + contentDir = h.Cfg.GetString("contentDir") ) gitRepo, err := gitmap.Map(workingDir, "") |