This will work anyway only with provided_parameter_count = 0 or 1, right?  The function can be called guess_repository_parameter