Skip to content

Commit

Permalink
hugolib: Continue GitInfo lookup on error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bep committed Feb 22, 2018
1 parent 19d9a46 commit e9750d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/gitinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9750d8

Please sign in to comment.