or do you mean agent can convert https url to ssh??
or do you mean agent can convert https url to ssh??
Yep it does that automatically if you set: force_git_ssh_protocol: true
https://github.com/allegroai/clearml-agent/blob/42606d9247afbbd510dc93eeee966ddf34bb0312/docs/clearml.conf#L25
task.update({'script': {'version_num': 'my_new_commit_id'}})
This will update to a specific commit id, you can pass empty string '' to make the agent pull the latest from the branch
Hi TrickySheep9 ,
The Task.init
call will detect your repository as part of the automagic. You can disable it withauto_connect_frameworks={'detect_repository': False}
but I dont think this is the case.
Maybe clearml-task
? You can https://clear.ml/docs/latest/docs/guides/clearml-task/clearml_task_tutorial
Ohh, sure then editing git config will solve it.
btw: why would you need to do that, the agent knows how to do this conversion on the fly
I just want to change git remote like https://gitserver.com/path/to.git -> mailto:git@gitserver.com :path/to.git
Only allowed to have ssh key, not username-password
Need - in my CI, the url used is https but I need the ssh url to be used. I see that we can pass repo to Task.create but not Task.init
Are you cloning an existing Task, or creating a new one ?
As of now solving by updating the git config locally before creating the task