This fixes a bug where we used the parent directory's path when trying read trees and files for a child entry. Many tests in `test_merged_tree` fail after switching to the test backend there without this fix/
Merge::map()
materialize_merge_result()
PathBuf
to_fs_path()
Debug
LockedWorkingCopy::drop()