summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/hugo_sites.go')
-rw-r--r--hugolib/hugo_sites.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/hugo_sites.go b/hugolib/hugo_sites.go
index 0b68af2ec..a79a77d36 100644
--- a/hugolib/hugo_sites.go
+++ b/hugolib/hugo_sites.go
@@ -230,13 +230,13 @@ func (h *HugoSites) RegularPages() page.Pages {
return v
}
-func (h *HugoSites) gitInfoForPage(p page.Page) (source.GitInfo, error) {
+func (h *HugoSites) gitInfoForPage(p page.Page) (*source.GitInfo, error) {
if _, err := h.init.gitInfo.Do(context.Background()); err != nil {
- return source.GitInfo{}, err
+ return nil, err
}
if h.gitInfo == nil {
- return source.GitInfo{}, nil
+ return nil, nil
}
return h.gitInfo.forPage(p), nil