summaryrefslogtreecommitdiffstats
path: root/hugolib/filesystems
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-19 12:17:44 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-19 18:51:59 +0100
commitad6504e6b504277bbc7b60d093cdccd4f3baaa4f (patch)
tree294ef0155dcd9b884fa387512b2b54ab0ef1493e /hugolib/filesystems
parent158e7ec204e5149d77893d353cac9f55946d3e9a (diff)
Fix abs path handling in module mounts
Fixes #6622
Diffstat (limited to 'hugolib/filesystems')
-rw-r--r--hugolib/filesystems/basefs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/filesystems/basefs.go b/hugolib/filesystems/basefs.go
index cdc39ce61..d931db4d1 100644
--- a/hugolib/filesystems/basefs.go
+++ b/hugolib/filesystems/basefs.go
@@ -531,6 +531,9 @@ func (b *sourceFilesystemsBuilder) createModFs(
)
absPathify := func(path string) string {
+ if filepath.IsAbs(path) {
+ return path
+ }
return paths.AbsPathify(md.dir, path)
}