clearml_agent/helper/repo.py
def replace_http_url(cls, url, port=None, username=None):
        # type: (Text, Optional[int], Optional[str]) -> Text
        """
        Replace HTTPS URL with SSH URL when applicable
        """
        parsed_url = furl(url)
        if parsed_url.scheme == "https":
            parsed_url.scheme = "ssh"
            parsed_url.username = username or "git"
            parsed_url.password = None
            # make sure there is no port in the final url (safe_furl support)
            # the original port was an https port, and we do not know if there is a different ssh port,
            # so we have to clear the original port specified (https) and use the default ssh schema port.
            parsed_url.port = port or None
            url = parsed_url.url
        return url

        Replace HTTPS URL with SSH URL when applicable
        
Replace HTTPS URL with SSH URL when applicable
Replace HTTPS URL with SSH URL when applicable
def replace_http_url(cls, url, port=None, username=None):
        parsed_url = furl(url)
        if parsed_url.scheme == "https":
            parsed_url.scheme = "ssh"
            parsed_url.username = username or "git"
            parsed_url.password = None
            parsed_url.port = port or None
            url = parsed_url.url
        return url
def replace_http_url ( cls , url , port = None , username = None ) : parsed_url = furl ( url ) if parsed_url . scheme == "https" : parsed_url . scheme = "ssh" parsed_url . username = username or "git" parsed_url . password = None parsed_url . port = port or None url = parsed_url . url return url
Replace HTTPS URL with SSH URL when applicable
Replace HTTPS URL with SSH URL when applicable
# type: (Text, Optional[int], Optional[str]) -> Text """
        Replace HTTPS URL with SSH URL when applicable
        """ # make sure there is no port in the final url (safe_furl support) # the original port was an https port, and we do not know if there is a different ssh port, # so we have to clear the original port specified (https) and use the default ssh schema port.
cls
url
port
username