What could explain the failing test we currently have? One hint: your change of course adds the execution of workingTreeIterator.initRootIterator() - that's what we want. But It also changes that we use the use repo.getFS() instead of FS.DETECTED.