clearml_agent/helper/repo.py
def rewrite_ssh_url(cls, url, port=None, username=None):
        # type: (Text, Optional[int], Optional[str]) -> Text
        """
        Rewrite SSH URL with custom port and username
        """
        parsed_url = furl(url)
        if parsed_url.scheme == "ssh":
            parsed_url.username = username or "git"
            parsed_url.port = port or None
            return parsed_url.url

        Rewrite SSH URL with custom port and username
        
Rewrite SSH URL with custom port and username
Rewrite SSH URL with custom port and username
def rewrite_ssh_url(cls, url, port=None, username=None):
        parsed_url = furl(url)
        if parsed_url.scheme == "ssh":
            parsed_url.username = username or "git"
            parsed_url.port = port or None
            return parsed_url.url
def rewrite_ssh_url ( cls , url , port = None , username = None ) : parsed_url = furl ( url ) if parsed_url . scheme == "ssh" : parsed_url . username = username or "git" parsed_url . port = port or None return parsed_url . url
Rewrite SSH URL with custom port and username
Rewrite SSH URL with custom port and username
# type: (Text, Optional[int], Optional[str]) -> Text """
        Rewrite SSH URL with custom port and username
        """
cls
url
port
username