Allow github style ssh repo names

This commit is contained in:
Will Thames 2014-09-10 21:55:27 +10:00
commit d6a725659e
3 changed files with 7 additions and 1 deletions

View file

@ -362,7 +362,7 @@ def repo_url_to_role_name(repo_url):
# gets the role name out of a repo like
# http://git.example.com/repos/repo.git" => "repo"
if '://' not in repo_url:
if '://' not in repo_url and '@' not in repo_url:
return repo_url
trailing_path = repo_url.split('/')[-1]
if trailing_path.endswith('.git'):