hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit e9750d831f749afa928d8a099af5889d18cb2484
parent 19d9a46f63a24b65c041be3f95053c154c78fd92
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 22 Feb 2018 17:21:09 +0100

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.

Diffstat:
Mhugolib/gitinfo.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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