static File normalizeParentDirectory(final File repositoryDirectory, final String rootDirectory) throws IOException {
        var parentDirectory = repositoryDirectory;
        if (StringUtils.isNotBlank(rootDirectory)) {
            parentDirectory = new File(repositoryDirectory, rootDirectory);
            FileUtils.mkdir(parentDirectory, true);
        }
        return parentDirectory;
    }
Normalize parent directory file.

@param repositoryDirectory the repository directory
@param rootDirectory       the root directory
@return the file
@throws IOException the io exception
support/cas-server-support-git-service-registry/src/main/java/org/apereo/cas/services/locator/GitRepositoryRegisteredServiceLocator.java