From e9750d831f749afa928d8a099af5889d18cb2484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 22 Feb 2018 17:21:09 +0100 Subject: [PATCH] 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. --- hugolib/gitinfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go index 16d8c43a5..bfcfa9a42 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