Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/hugofs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-09 09:09:15 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-09 11:18:28 +0300
commit166a394a2fef6f2990e264cc8dfb722af2cc6a67 (patch)
treeaee96bc2e8a9fe588d9eab40ce5a2a27511a4ba2 /hugofs
parent824395204680496d528684587a1f2977394aff3d (diff)
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) {