diff --git a/clearml_agent/helper/package/external_req.py b/clearml_agent/helper/package/external_req.py index 276567c..cfee106 100644 --- a/clearml_agent/helper/package/external_req.py +++ b/clearml_agent/helper/package/external_req.py @@ -94,12 +94,13 @@ class ExternalRequirements(SimpleSubstitution): vcs_url = vcs_url[::-1].replace(fragment[::-1], '', 1)[::-1] # remove ssh:// or git:// prefix for git detection and credentials scheme = '' + full_vcs_url = vcs_url if vcs_url and (vcs_url.startswith('ssh://') or vcs_url.startswith('git://')): scheme = 'ssh://' # notice git:// is actually ssh:// vcs_url = vcs_url[6:] from ..repo import Git - vcs = Git(session=session, url=vcs_url, location=None, revision=None) + vcs = Git(session=session, url=full_vcs_url, location=None, revision=None) vcs._set_ssh_url() new_req_line = 'git+{}{}{}'.format( '' if scheme and '://' in vcs.url else scheme,