Do check_repository_format() early (re-fix)