hugolib: Continue GitInfo lookup on error
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Feb 2018 16:21:09 +0000 (17:21 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Feb 2018 16:21:09 +0000 (17:21 +0100)
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

index 16d8c43a53e3ab54702c8d3583b6a7d717f0e4fd..bfcfa9a42feabfb9dea681a371ca773c69a465b9 100644 (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