summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2013-12-15 16:31:29 +0200
committerspf13 <steve.francia@gmail.com>2013-12-28 13:45:38 -0500
commite46148f948db3b8d86e9bae6228d5981fcb3b006 (patch)
treee27bbae4854720c7e20f3bf421399114a106a609 /hugolib/config.go
parent065928fcf017b0ce6977fef666f7977f7f09b4d7 (diff)
Fix static file change detection on Windows.
Fixed windows uses different filepath separator. The filepath.ToSlash shouldn't be used, because it can cause errors in filepath suffix and prefix testing since "c:\a" isn't a prefix of "c:/a/b/c".
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 9a737d7b7..e2d304937 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -161,7 +161,7 @@ func (c *Config) GetAbsPath(name string) string {
return name
}
- return filepath.ToSlash(filepath.Join(c.GetPath(), name))
+ return filepath.Join(c.GetPath(), name)
}
func (c *Config) findConfigFile(configFileName string) (string, error) {