diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-09 08:09:15 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-09 10:18:28 +0200 |
commit | 166a394a2fef6f2990e264cc8dfb722af2cc6a67 (patch) | |
tree | aee96bc2e8a9fe588d9eab40ce5a2a27511a4ba2 /hugofs | |
parent | 824395204680496d528684587a1f2977394aff3d (diff) | |
download | hugo-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.go | 4 |
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) { |