aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugofs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-09 08:09:15 +0200
committerBjørn Erik Pedersen <[email protected]>2019-08-09 10:18:28 +0200
commit166a394a2fef6f2990e264cc8dfb722af2cc6a67 (patch)
treeaee96bc2e8a9fe588d9eab40ce5a2a27511a4ba2 /hugofs
parent824395204680496d528684587a1f2977394aff3d (diff)
downloadhugo-166a394a2fef6f2990e264cc8dfb722af2cc6a67.tar.gz
hugo-166a394a2fef6f2990e264cc8dfb722af2cc6a67.zip
Fix static sync issue with virtual mounts
Fixes #6165
Diffstat (limited to 'hugofs')
-rw-r--r--hugofs/rootmapping_fs_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugofs/rootmapping_fs_test.go b/hugofs/rootmapping_fs_test.go
index b3c491f17..0b3f251f2 100644
--- a/hugofs/rootmapping_fs_test.go
+++ b/hugofs/rootmapping_fs_test.go
@@ -283,6 +283,10 @@ func TestRootMappingFsMountOverlap(t *testing.T) {
assert.Equal([]string{"b.txt", "c"}, getDirnames("static/b"))
assert.Equal([]string{"c.txt"}, getDirnames("static/b/c"))
+ fi, err := rfs.Stat(filepath.FromSlash("static/b/b.txt"))
+ assert.NoError(err)
+ assert.Equal("b.txt", fi.Name())
+
}
func TestRootMappingFsOs(t *testing.T) {