Fix repo_endpoint rake task