This is probably wrong. On Cygwin with git-new-workdir info is a symlink. So this should be using repository.getFS().resolve(repository.getDirectory(), "info/exclude"). I must have missed this earlier. :-(