mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 04:18:46 +00: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:
1 file changed
+1
-1
+1
-1
@@ -59,7 +59,7 @@ func (h *HugoSites) assembleGitInfo() {
|
|||||||
g, ok := gitMap[filename]
|
g, ok := gitMap[filename]
|
||||||
if !ok {
|
if !ok {
|
||||||
h.Log.WARN.Printf("Failed to find GitInfo for %q", filename)
|
h.Log.WARN.Printf("Failed to find GitInfo for %q", filename)
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
p.GitInfo = g
|
p.GitInfo = g
|
||||||
|
|||||||
Reference in new issue
Block a user