Unreviewed build fix. Declare $repository_id_to_name in the global scope.