setup: allow check_repository_format to read repository format