Clean up ref list in repo_details