clearml_agent/helper/repo.py
def add_auth(cls, config, url):
        """
        Add username and password to URL if missing from URL and present in config.
        Does not modify ssh URLs.
        """
        try:
            parsed_url = furl(url)
        except ValueError:
            return url
        if parsed_url.scheme in ["", "ssh"] or (parsed_url.scheme or '').startswith("git"):
            return parsed_url.url
        config_user = ENV_AGENT_GIT_USER.get() or config.get("agent.{}_user".format(cls.executable_name), None)
        config_pass = ENV_AGENT_GIT_PASS.get() or config.get("agent.{}_pass".format(cls.executable_name), None)
        config_domain = ENV_AGENT_GIT_HOST.get() or config.get("agent.{}_host".format(cls.executable_name), None)
        if (
            (not (parsed_url.username and parsed_url.password))
            and config_user
            and config_pass
            and (not config_domain or config_domain.lower() == parsed_url.host)
        ):
            parsed_url.set(username=config_user, password=config_pass)
        return parsed_url.url

        Add username and password to URL if missing from URL and present in config.
        Does not modify ssh URLs.
        
Add username and password to URL if missing from URL and present in config.
Does not modify ssh URLs.
Add username and password to URL if missing from URL and present in config . Does not modify ssh URLs .
def add_auth(cls, config, url):
        try:
            parsed_url = furl(url)
        except ValueError:
            return url
        if parsed_url.scheme in ["", "ssh"] or (parsed_url.scheme or '').startswith("git"):
            return parsed_url.url
        config_user = ENV_AGENT_GIT_USER.get() or config.get("agent.{}_user".format(cls.executable_name), None)
        config_pass = ENV_AGENT_GIT_PASS.get() or config.get("agent.{}_pass".format(cls.executable_name), None)
        config_domain = ENV_AGENT_GIT_HOST.get() or config.get("agent.{}_host".format(cls.executable_name), None)
        if (
            (not (parsed_url.username and parsed_url.password))
            and config_user
            and config_pass
            and (not config_domain or config_domain.lower() == parsed_url.host)
        ):
            parsed_url.set(username=config_user, password=config_pass)
        return parsed_url.url
def add_auth ( cls , config , url ) : try : parsed_url = furl ( url ) except ValueError : return url if parsed_url . scheme in [ "" , "ssh" ] or ( parsed_url . scheme or '' ) . startswith ( "git" ) : return parsed_url . url config_user = ENV_AGENT_GIT_USER . get ( ) or config . get ( "agent.{}_user" . format ( cls . executable_name ) , None ) config_pass = ENV_AGENT_GIT_PASS . get ( ) or config . get ( "agent.{}_pass" . format ( cls . executable_name ) , None ) config_domain = ENV_AGENT_GIT_HOST . get ( ) or config . get ( "agent.{}_host" . format ( cls . executable_name ) , None ) if ( ( not ( parsed_url . username and parsed_url . password ) ) and config_user and config_pass and ( not config_domain or config_domain . lower ( ) == parsed_url . host ) ) : parsed_url . set ( username = config_user , password = config_pass ) return parsed_url . url
Add username and password to URL if missing from URL and present in config.
Add username and password to URL if missing from URL and present in config .
"""
        Add username and password to URL if missing from URL and present in config.
        Does not modify ssh URLs.
        """
cls
config
url