Revert "No need to check if `repository_ref` is present"
Can't show this merge request because the source branch revert-9368-patch-1 is missing from project import-export-testing-group/gitlabhq_1643245269. Close this merge request or update the source branch.