Fix Appveyor Windows build and GitInfo path issue on Windows

This commit is contained in:
David Kassa
2017-01-01 16:16:58 -06:00
committed by Bjørn Erik Pedersen
parent 6e0f326b9d
commit 09a0af94f5
6 changed files with 62 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ func (h *HugoSites) assembleGitInfo() {
continue
}
// Git normalizes file paths on this form:
filename := path.Join(contentRoot, contentDir, filepath.ToSlash(p.Path()))
filename := path.Join(filepath.ToSlash(contentRoot), contentDir, filepath.ToSlash(p.Path()))
g, ok := gitMap[filename]
if !ok {
jww.ERROR.Printf("Failed to find GitInfo for %q", filename)