mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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:
parent
19d9a46f63
commit
e9750d831f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue