Fix bug with repo_url using the git protocol