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
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-20 13:24:44 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-20 22:23:03 +0300
commit1c0e7c1ae1eb9cd47fbe030ebddbf89df04fe667 (patch)
treee3e5528048ddb5bb749e7549eb8946717ebd45a3 /hugofs/walk.go
parentcad2d8cc70f25ca5e5107dd963c95b7b7c6840d1 (diff)
Make sure file mounts higher up wins
Fixes #9693
Diffstat (limited to 'hugofs/walk.go')
-rw-r--r--hugofs/walk.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/hugofs/walk.go b/hugofs/walk.go
index c02d36671..26f1b74e0 100644
--- a/hugofs/walk.go
+++ b/hugofs/walk.go
@@ -224,13 +224,8 @@ func (w *Walkway) walk(path string, info FileMetaInfo, dirEntries []FileMetaInfo
// to the closest one.
fiw, fjw := fim.Weight, fjm.Weight
if fiw != fjw {
- return fiw > fjw
- }
- // Explicit order set.
- fio, fjo := fim.Ordinal, fjm.Ordinal
- if fio != fjo {
- return fio < fjo
+ return fiw > fjw
}
// When we walk into a symlink, we keep the reference to