mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Fix Appveyor Windows build and GitInfo path issue on Windows
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
6e0f326b9d
commit
09a0af94f5
@@ -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)
|
||||
|
Reference in New Issue
Block a user