From: Bjørn Erik Pedersen Date: Thu, 22 Feb 2018 16:21:09 +0000 (+0100) Subject: hugolib: Continue GitInfo lookup on error X-Git-Tag: v0.37~9 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9750d831f749afa928d8a099af5889d18cb2484;p=brevno-suite%2Fhugo hugolib: Continue GitInfo lookup on error The current logic stops looking after the first failure to connect a page with a Git commit. This implies a fatal error, but that may not be the case. --- diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go index 16d8c43a..bfcfa9a4 100644 --- a/hugolib/gitinfo.go +++ b/hugolib/gitinfo.go @@ -59,7 +59,7 @@ func (h *HugoSites) assembleGitInfo() { g, ok := gitMap[filename] if !ok { h.Log.WARN.Printf("Failed to find GitInfo for %q", filename) - return + continue } p.GitInfo = g