Fix for exporting a repository with a complex repository dependency.