mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user