yes, I'll change it that repo.getIndexFile() is asked. But currently we don't support this setup. repo.readDirCache() and repo.lockDirCache() will all throw exceptions on a bare repo, regardless whether we have a index file or not. I think that's a different bug.