mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-03 18:52:22 +00:00
ClearML Agent allows to force git cloning via SSH and also has a setting to force a username. The relevant settings are: agent.force_git_ssh_protocol: true agent.force_git_ssh_user: "git" However, forcing a specific username or port only worked so far if the agent translated either from https->ssh or from ssh->https. A given ssh URL was not rewritten. This commit adds a helper function and includes it in `_set_ssh_url` to allow rewriting ssh URLs with the username and/or port given in the config `agent.force_git_ssh_user`. If neither username nor port are forced in the config, the URL is not touched. This is somewhat related to issue #42. Note that rewriting https->https is not covered in this commit. |
||
---|---|---|
.. | ||
gpu | ||
os | ||
package | ||
__init__.py | ||
base.py | ||
check_update.py | ||
console.py | ||
dicts.py | ||
process.py | ||
repo.py | ||
resource_monitor.py | ||
runtime_verification.py | ||
singleton.py | ||
trace.py |