@Override
    public File getRepositoryDirectory() {
        return gitInstance.getRepository().getDirectory().getParentFile();
    }
This is {@link DefaultGitRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-git-core/src/main/java/org/apereo/cas/git/DefaultGitRepository.java