Even if core.worktree wasn't set in the configuration file, it might have been set by the caller of Repository.  We have like 8 forms of our constructor that takes various arguments... one of those is the work tree path, which could have come from an environment variable.