shithub: hugo

Download patch

ref: e9750d831f749afa928d8a099af5889d18cb2484
parent: 19d9a46f63a24b65c041be3f95053c154c78fd92
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Feb 22 12:21:09 EST 2018

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.

--- a/hugolib/gitinfo.go
+++ b/hugolib/gitinfo.go
@@ -59,7 +59,7 @@
 		g, ok := gitMap[filename]
 		if !ok {
 			h.Log.WARN.Printf("Failed to find GitInfo for %q", filename)
-			return
+			continue
 		}
 
 		p.GitInfo = g