mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-19 05:34:59 +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. |
||
---|---|---|
.. | ||
backend_api | ||
backend_config | ||
commands | ||
external | ||
glue | ||
helper | ||
interface | ||
__init__.py | ||
__main__.py | ||
complete.py | ||
config.py | ||
definitions.py | ||
errors.py | ||
session.py | ||
version.py |