diff options
author | David Kassa <david.kassa@gmail.com> | 2017-01-01 16:16:58 -0600 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-01 23:16:58 +0100 |
commit | 09a0af94f54a0dbc8900c95ce5c83ee514d8ca68 (patch) | |
tree | 671d5351c62f998fbc2e99160463be7a0bb2beec /hugolib/gitinfo.go | |
parent | 6e0f326b9dd3cf60bf87c99c7957c519d0ddd9ef (diff) |
Fix Appveyor Windows build and GitInfo path issue on Windows
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 b2119048e..2893db06f 100644 --- a/hugolib/gitinfo.go +++ b/hugolib/gitinfo.go @@ -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) |