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.
This commit is contained in:
Bjørn Erik Pedersen 2018-02-22 17:21:09 +01:00
parent 19d9a46f63
commit e9750d831f
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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