diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-02-22 17:21:09 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-02-22 17:21:09 +0100 |
commit | e9750d831f749afa928d8a099af5889d18cb2484 (patch) | |
tree | db0f006e127207352162956e2792f174710a5112 /hugolib/gitinfo.go | |
parent | 19d9a46f63a24b65c041be3f95053c154c78fd92 (diff) | |
download | hugo-e9750d831f749afa928d8a099af5889d18cb2484.tar.gz hugo-e9750d831f749afa928d8a099af5889d18cb2484.zip |
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.
Diffstat (limited to 'hugolib/gitinfo.go')
-rw-r--r-- | hugolib/gitinfo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/gitinfo.go b/hugolib/gitinfo.go index 16d8c43a5..bfcfa9a42 100644 --- a/hugolib/gitinfo.go +++ b/hugolib/gitinfo.go @@ -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 |