summary refs log tree commit diff
path: root/ripple
diff options
context:
space:
mode:
Diffstat (limited to 'ripple')
-rw-r--r--ripple/fossil/src/bin/mount.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ripple/fossil/src/bin/mount.rs b/ripple/fossil/src/bin/mount.rs
index f1bcdde..c9c5955 100644
--- a/ripple/fossil/src/bin/mount.rs
+++ b/ripple/fossil/src/bin/mount.rs
@@ -906,7 +906,7 @@ mod memtree {
 					(0, _) => {
 						break Some(root);
 					}
-					(_, Node::Directory(d)) => {
+					(_, Node::Directory(d)) if index <= d.size => {
 						index -= 1;
 						d
 					}