shithub: hugo

Download patch

ref: 5ad2f17693a9860be76ef8089c8728d2b59d6b04
parent: 162d3a586d36cabf6376a76b096fd8b6414487ae
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Apr 26 07:03:12 EDT 2017

hugolib: Make missing GitInfo a WARNING

And not an ERROR.

Fixes #3376

--- a/hugolib/gitinfo.go
+++ b/hugolib/gitinfo.go
@@ -58,7 +58,7 @@
 		filename := path.Join(filepath.ToSlash(contentRoot), contentDir, filepath.ToSlash(p.Path()))
 		g, ok := gitMap[filename]
 		if !ok {
-			h.Log.ERROR.Printf("Failed to find GitInfo for %q", filename)
+			h.Log.WARN.Printf("Failed to find GitInfo for %q", filename)
 			return
 		}